Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
Re: ..display the same article twice on an archive page?
yes i saw that.. what i’m saying is that i have this same technique working well on my own site.. so i’m wondering if it might be a bug in your textpattern revision?
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: ..display the same article twice on an archive page?
Hi!
Today I downloaded the newest files from the repository! (April 13th, 2005)
The problem persists. Although now the right article-information is displayed, the article-tag in some cases ignores my form completely.
These cases are articles that are commented – there the comments are shown too, and articles that have excerpts – in this case the full article is shown in the navbar…
Any ideas?
Offline
#33 2005-04-13 17:48:22
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: ..display the same article twice on an archive page?
For now, you might be able to get away with omitting the second article tag, provided the main article tag (not the sidebar) appears first on the page.
instead of using a second article tag in the sidebar, try this:
<txp:output_form form="sidebararticleform" />
..where sidebararticleform is the one that has the author tags etc.
May not work in some versions, because it relies on undocumented behaviour.
Alex
Offline
Re: ..display the same article twice on an archive page?
That’s the result:
Warning: extract(): First argument should be an array in …/textpattern/publish/taghandlers.php on line 963
Hmmm.
Offline
#35 2005-04-13 18:08:43
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: ..display the same article twice on an archive page?
You might get that method to work by removing the line unset($GLOBALS['thisarticle']);
from the doArticle() function in publish.php, around line 579.
Alex
Offline
Re: ..display the same article twice on an archive page?
Ahem… That’s too much hardcore. I think, I wait until this somehow works…
Offline