Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-04-13 14:26:37

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

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

#32 2005-04-13 17:15:59

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

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

#34 2005-04-13 17:56:32

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

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

#36 2005-04-13 19:44:01

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

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

#37 2005-04-15 13:07:36

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

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

Currently I put the additional information above my article. This works without problems…

Offline

#38 2005-07-03 21:12:28

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

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

#39 2005-10-09 18:38:02

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

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

Board footer

Powered by FluxBB