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?
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
Re: ..display the same article twice on an archive page?
Currently I put the additional information above my article. This works without problems…
Offline
Re: ..display the same article twice on an archive page?
Hmm. Just revisiting this, and zem’s hack works perfectly for my purposes. Thanks, zem!
Offline
Re: ..display the same article twice on an archive page?
Okay – the hack no longer seems to work with 4.0. Will updating to 4.0.1 help, or does the hack need to be adjusted? I know nothing of PHP, but there was a very similar line next to the one Zem said to remove – “unset($GLOBALS[‘theseatts’]);//Required?” Should this be taken out as well?
Offline