Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-06 20:53:58

arkham
Member
Registered: 2005-03-27
Posts: 102
Website

use link_to_prev and link_to_next conditionally

If I want to have something like

< previous post | next post >

I see how to build it using link_to_prev and link_to_next but what if I don’t want the “|” and “>” to show up on the most current article of that section or the oldest article of that section. I didn’t see a conditional for this…

Did I just miss it? Suggestions?

Offline

#2 2005-10-09 02:13:41

arkham
Member
Registered: 2005-03-27
Posts: 102
Website

Re: use link_to_prev and link_to_next conditionally

any ideas?

Offline

#3 2005-10-09 02:26:09

swf
Plugin Author
From: Saskatoon, Saskatchewan Canada
Registered: 2004-06-21
Posts: 109
Website

Re: use link_to_prev and link_to_next conditionally

you can just use the following right?
<txp:link_to_prev>| <txp:prev_title /> ></txp:link_to_prev> to show the arrow conditionally and the |. The problem is you wouldn’t have the | when there are no previous articles to link to, but other wise this should work.

Offline

Board footer

Powered by FluxBB