Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-04 14:20:40
- danielbely
- New Member
- From: Kiev, Ukraine
- Registered: 2005-04-03
- Posts: 2
Problem with next/prev_link tags
Is there a way to make <txp:next_link> and <txp:prev_link> tags display links to the articles in a current category only?
Thanks!
Offline
#2 2006-04-04 19:14:30
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Problem with next/prev_link tags
Yes.
Offline
#3 2006-04-05 09:05:08
- danielbely
- New Member
- From: Kiev, Ukraine
- Registered: 2005-04-03
- Posts: 2
Re: Problem with next/prev_link tags
Thank you!
But I still can’t figure how to do what I want.
I’d like each article to be followed by links to previous and next article in the current category.
I’ve used the following tag:
<txp:article_custom form="next_prev" limit="1" offset="1" category="articles" time="past" />
Here is my “next_prev” form:
<txp:permlink><txp:title /></txp:permlink>
This tag doesn’t consider it’s context, i.e. if a category contains 5 articles, it always displays a link to the 4th one, no matter what articles is currently viewed. Please can you tell me what am I doing wrong?
Thanks again
Offline
Pages: 1