Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-03-08 15:33:21
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Problem showing previous and next article
Very strange. Look at my code:
<txp:output_form form="header" />
<txp:if_search>
<txp:article />
<txp:else />
<txp:if_article_list>
<txp:article_custom form=“Sommario” sortby=“posted” sortdir=“desc” limit=“10” />
<p><txp:older>« Precedente</txp:older> | <txp:newer>Successivo »</txp:newer></p>
</txp:if_article_list>
<txp:if_individual_article>
<txp:article limit=“1” form=“ArticoloSingolo” />
<p><txp:link_to_prev><txp:prev_title />< /txp:link_to_prev> | <txp:link_to_next><txp:next_title />< /txp:link_to_next></p>
</txp:if_individual_article>
</txp:if_search>
<txp:output_form form="sidebar" />
<txp:output_form form="footer" />
I don’t know why but I can’t get working well the <txp:older> and <txp:newer> tags. The previous and next articles aren’t shown properly. Can you help me, please?
Thanks in advance!
Last edited by candyman (2007-03-08 15:51:49)
Offline
#2 2007-03-08 20:16:54
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Problem showing previous and next article
May these tags are incompatible with the custom_form?
Other ways to get these running?
Offline
#3 2007-03-11 08:59:43
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Problem showing previous and next article
older
and newer
do not work with article_custom
; article_custom
always returns a list without pagination of any kind.
Do you need to use article_custom
, rather than article
?
Offline
#4 2007-03-13 08:22:56
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Problem showing previous and next article
In effect… no! Used “article” and all seems OK. Thanks for the tip!
Offline