Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:older: after and before the article tag?
I have searched for an answer but didn’t find it, so here we go …
I’ve got a portfolio that use archives pagination with this:
<code>
<txp:if_article_list>
<div id=“gallery-wrap”>
<ul id=“gallery”>
<txp:article form=“thumbs” limit=“9” />
</ul>
</div>
<div class=“gallery-nav”>
<p class=“prev”><txp:older>« Prev</txp:older></p>
<p class=“next”><txp:newer>Next »</txp:newer></p>
</div>
</txp:if_article_list>
<code>
That works great for me, but thinking about usability the navigation could be better before the thumbs gallery. I tried to put the navigation code before the article tag but didn’t work, any idea about how to do this?
Thanks in advance!
Last edited by duchamp (2005-11-05 12:41:00)
Offline
Re: txp:older: after and before the article tag?
Try putting a <txp:article pgonly="1" />
before you use the first older/newer tag. It will not output anything, but initialize the variables, so you can use older/newer tags.
Offline
Re: txp:older: after and before the article tag?
Sencer, thanks a ton! That was the solution!
Works perfect for me.
Cheers
Offline