Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-04-04 19:28:21

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: ..display the same article twice on an archive page?

Mine I just put in the author tag. It appears fine, except I also get the comments and comment form, even though comment_invite is not in the form.

Offline

#14 2005-04-04 20:02:50

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: ..display the same article twice on an archive page?

Oh, right. So in the cases where I use override form, the second txp:article call is having its form overridden, that makes sense. Where I don’t use the override, I have the same problem as Mary: comments and comment form show up as well.

While it would be nice to have that fixed, I’m wondering if there isn’t a way to do this outside of txp:article, as I need override form to make my site’s front page work correctly (long story). A plugin perhaps? All I want is a simple sentence that says “this is the post “txp:title”, from the “txp:section” section of mysite.com. Like I say, as of rc1 you could call those tags outside of article forms no problem.

Offline

#15 2005-04-05 06:16:33

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

DEAN!!!

HELP!!!

How to solve this problem?

Offline

#16 2005-04-05 09:24:09

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: ..display the same article twice on an archive page?

Didn’t you make any progress ? Did you try using txp:article instead of article_custom (remember Mary’s comment, it’s not context sensitive)

For me with txp:article it’s working fine with the excerpts. I forgot to ask : which TxP version are you running ?

And also : copy/paste the code in your forms and on your page so we can check it out. Dean has many things to cook right now, and I don’t think we need him (this time).

Glad to help, but give us some material to work with. We will sort this out, no doubt :)


.: Retired :.

Offline

#17 2005-04-06 18:11:47

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

Okay, David, here you are.

My archive page:
<code>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>

<head> <title><txp:page_title separator=”: “ /></title> <link rel=“stylesheet” type=“text/css” href=”<txp:css />” />
</head>

<body> <div id=“banner”> <h1><txp:link_to_home>no<span>umlauts</span>.com</txp:link_to_home></h1> </div> <div id=“container”> <div id=“sidebar”> <h2>Navigation</h2> <ul> <li><txp:link_to_home>Home</txp:link_to_home></li> </ul> <h2>Around this article</h2>
<txp:article form=“around_article” limit=“1” listform=“around_article” />
<txp:related_articles label=“Related Articles” limit=“10” break=“li” wraptag=“ul” /> </div> <div id=“content”> <txp:article /> </div> <div id=“footer”> Nothing yet to say here. Of course, <txp:link_to_home>home</txp:link_to_home>, <a href=“http://validator.w3.org/check/referer” title=“Check the validity of this site&#8217;s XHTML”>xhtml</a>, <a href=“http://jigsaw.w3.org/css-validator/check/referer” title=“Check the validity of this site&#8217;s CSS”>css</a>, <a href=“http://www.contentquality.com/mynewtester/cynthia.exe?Url1=http://noumlauts.com/”>508</a>. </div> </div>
</body>
</html>
</code>

My form “around_article”:
<code>
<ul>
<li>Title<br /><span style=“margin-left: 1em; font-style: italic;”>”<txp:title />”</span></li>
<li>Author<br /><span style=“margin-left: 1em; font-style: italic;”><txp:author link=“n” /></span></li>
<li>Posted on<br /><span style=“margin-left: 1em; font-style: italic;”><txp:posted /></span></li>
<li>Category<br /><span style=“margin-left: 1em; font-style: italic;”><txp:category1 link=“y” /></span></li>
<li>Permalink<br /><span style=“margin-left: 1em; font-style: italic;”>Use <txp:permlink>this link</txp:permlink> to refer this article.</span></li>
<li>Excerpt<br/><span style=“margin-left: 1em; font-style: italic;”><txp:excerpt /></span></li>
</ul>
</code>

The version I am running is 1.0rc3.

Waiting what happens now… ;-)

Offline

#18 2005-04-07 20:26:34

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

Nothing happens?

Offline

#19 2005-04-08 14:01:38

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

david?

Offline

#20 2005-04-08 15:44:19

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: ..display the same article twice on an archive page?

Sorry, been busy did not have time to check your code.
I will read it and try give a solution tonight…


.: Retired :.

Offline

#21 2005-04-08 17:16:11

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

Okay, thanks a lot. I’ll wait…

Offline

#22 2005-04-11 15:32:15

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: ..display the same article twice on an archive page?

Ok I still didn’t have time to check this… other code problems of my own… can someone step in ?


.: Retired :.

Offline

#23 2005-04-11 17:07:28

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: ..display the same article twice on an archive page?

where you have

<txp:article form="around_article" limit="1" listform="around_article" />

try replacing that line with the following:

<code>
<txp:if_individual_article>
<txp:article />
</txp:if_individual_article>
<txp:if_article_list>
<txp:article_custom form=“around_article” limit=“1” listform=“around_article” />
</txp:if_article_list>
</code>


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#24 2005-04-11 17:26:46

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: ..display the same article twice on an archive page?

Hi alicson!

Sorry to say, but your code has exactly the same effect as if I would not have changed mine into yours.

Offline

Board footer

Powered by FluxBB