Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-05 12:40:44

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

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

#2 2005-11-05 13:15:33

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#3 2005-11-05 13:53:01

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: txp:older: after and before the article tag?

Sencer, thanks a ton! That was the solution!
Works perfect for me.

Cheers

Offline

Board footer

Powered by FluxBB