Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-17 19:02:26

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Question about Prev/Next Article Links

I am using this <txp:prev_title /> and this <txp:next_title /> to let the user navigate to the next “newer” and “older” article.

the problem is, when they are on the very first or very last article, the text understandably does not show up. however I DO want the text to show up (but maybe not be clickable or something like that).

any idea how to do this? thanks!

Offline

#2 2007-01-17 19:07:36

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Question about Prev/Next Article Links

But if you are using txp:prev_title / txp:next_title it’s more than understandable that it doesn’t output anything. Which title will show up as the next/prev title of the first/last article?

You can try:

<txp:link_to_next showalways="1">Next</txp:link_to_next>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-01-17 19:23:47

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: Question about Prev/Next Article Links

the layout gets messed up when that button disappears altogether, so it’s best if i have it stay on the screen but become grayed-out and not clickable.

thanks that did the trick.

Offline

Board footer

Powered by FluxBB