Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: use link_to_prev and link_to_next conditionally
any ideas?
Offline
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