Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-25 14:38:39

lisionosk
Member
From: Switzerland
Registered: 2006-02-10
Posts: 99

Older/newer links missing on uncategorised pages

Hi, I have the following setup:

<txp:output_form form="header" />

	           <txp:output_form form="navigation" />


                   <txp:output_form form="sub-navigation" />
	           <div id="content-box-top"></div>
		   <div id="content-box-middle">
		   <div id="content-box-bottom">
                   <div id="content">

                   <txp:if_category name="daily-miscellanea">
                   <div id="d-misc"><h2>Daily miscellanea...</h2></div>
                   </txp:if_category>
                   <txp:if_category name="heart-blurbs">
                   <div id="h-blurbs"><h2>Heart blurbs...</h2></div>
                   </txp:if_category>
                   <txp:if_category name="dreamt-life">
                   <div id="d-life"><h2>Dreamt life...</h2></div>
                   </txp:if_category>

<txp:if_category>
<txp:article allowoverride="0" form="default" limit="3" pgonly="0" searchall="0" searchsticky="0" sort="Posted desc" status="4" />
<txp:else />
<div id="d-misc"><h2>Daily miscellanea...</h2></div>
<txp:article_custom allowoverride="0" category="Daily-miscellanea" form="default" limit="3" pgonly="0" sort="Posted desc" status="4" />
</txp:if_category>

                   </div>                  

                   <div id="page-nav">
                   <txp:if_individual_article>
		   <txp:link_to_prev><img id="prev" src="/images/9.png" alt="previous" /></txp:link_to_prev><txp:link_to_next><img id="next" src="/images/10.png" alt="next" /></txp:link_to_next>
                   <txp:else />
                   <txp:older><img id="prev" src="/images/9.png" alt="previous" /></txp:older><txp:newer><img id="next" src="/images/10.png" alt="next" /></txp:newer>
                   </txp:if_individual_article>

                   </div>


<txp:output_form form="footer" />

I observe that the older/newer links appear only on the category/single article pages but not on the main uncategorised pages. Is there a reason for it, and how can I fix that ?

Offline

#2 2007-10-25 14:46:21

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Older/newer links missing on uncategorised pages

Because <txp:article_custom /> isn’t content sensitive, and so it doesn’t support pagination. Use <txp:article /> instead.

Cheers!

Offline

#3 2007-10-25 14:53:13

lisionosk
Member
From: Switzerland
Registered: 2006-02-10
Posts: 99

Re: Older/newer links missing on uncategorised pages

Thank you! But it’s not possible to restrict articles displayed according to a single category with the regular tag ?

Offline

#4 2007-10-25 15:15:48

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Older/newer links missing on uncategorised pages

No, it’s not, if don’t use txp:if_article_category inside the article-form.

Another way, is by using a plugin, like chh_article_custom

Cheers!

Offline

Board footer

Powered by FluxBB