Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#25 2005-04-12 22:23:13

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

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

:-/

okay… can we start over? i tried rereading this thread a few times to figure out what exactly is wrong and what you’re trying to do…

would you mind restating as simply as possible what the situation is? what is it that you are trying to do? what’s the output that you want?
i’ll try referring back to earlier posts in this thread for more details if necessary..


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

Offline

#26 2005-04-13 06:51:27

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

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

Okay, no problem:

On my website, I want to have in the main column the article displayed. In the navigation bar (on the right side), I would like to have displayed only additional data like Author, Time and Date, Category, the Permanent link and, if there is one, the excerpt.

Like here.

But the problem is that with my solution, which is posted above, only the most current article is displayed in the navigation bar.

See here, the article with id=26.

Do you see the problem? The article in the main column is the right one, but the additional information displayed in the navigation bar is the one from the most current article with id=27!

This is the main problem here.

But the problem goes a bit further: If the most current article has an excerpt, the whole article is shown in the navbar, not only the additional information, including also its comments… It seems as if TXP then ignores the form!

Any ideas?

Offline

#27 2005-04-13 08:45:37

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

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

Bangkok!? i miss Bangkok…
happy Songkrahn..

okay, i actually have what i think is the exact same thing you’re trying to do, working on a localized site i’m currently working on.

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

try just calling
<txp:article form="around_article" />

it probably won’t make a difference… but…. worth a try

the thing is, i have this working just fine on mine… it seems like you’re doing the right thing.. maybe try installing the latest RC3 revision from SVN, and see if that solves it?

i wonder whether clean URLs would fix it.. probably not.. but mine’s running on clean URLs…
i’m sorry i don’t have a definite solution right now


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

Offline

#28 2005-04-13 11:56:40

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

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

Okay, let’s start over:

I would like to have the article displayed in the main column, additional information about the article in the navbar on the right side. If I use a specific form (as I posted in the code above), the problem is that the additional information is displayed, but always from the most current article and not the one that I call!

Look at my website and see yourself!

Offline

#29 2005-04-13 11:56:50

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

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

Okay, let’s start over:

I would like to have the article displayed in the main column, additional information about the article in the navbar on the right side. If I use a specific form (as I posted in the code above), the problem is that the additional information is displayed, but always from the most current article and not the one that I call!

Look at my website and see yourself!

Offline

#30 2005-04-13 11:56:54

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

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

Okay, let’s start over:

I would like to have the article displayed in the main column, additional information about the article in the navbar on the right side. If I use a specific form (as I posted in the code above), the problem is that the additional information is displayed, but always from the most current article and not the one that I call!

Look at my website and see yourself!

Offline

Board footer

Powered by FluxBB