Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
txp:older works, txp:newer doesn't
I find it very odd that <txp:older> works fine, a link is generated and I can click that link to see the previous 10 articles in the category. However, <txp:newer> never generates a link!
Even after clicking the older link you would think a newer link would be generated to the page of 10 articles I was just on.
My page definition has:
<span class=“newer”><txp:newer>Newer…</txp:newer></span> <txp:article form=“default” limit=“10”/> <span class=“older”><txp:older>Older…</txp:older></span>In the generated HTML I do see my <span class=“newer”></span> but apparently TextPattern doesn’t think there are newer articles to generate the newer link!
Offline
#2 2008-11-23 05:43:37
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: txp:older works, txp:newer doesn't
You are calling the newer tag prior to calling txp:article, older sees results because it is being called after. Try moving your article tag to a position earlier in the template than newer.
If your display positioning calls for newer to appear first before the articles in the page flow, use two article tags with identical attributes – with the exception that “pgonly” is set to 1 in the first call.
Last edited by rsilletti (2008-11-23 05:46:29)
Offline
Re: txp:older works, txp:newer doesn't
Thanks, that was definitely the problem!
Offline
Pages: 1