Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-31 21:45:05

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

another older and newer question

does anyone know why the older and newer links won’t show up here?

<txp:article form=“news” section=“newstest” limit=“2” pgonly=“0” />

<p><txp:older>« <txp:text item=“older” /></txp:older> <txp:newer><txp:text item=“newer” /> »</txp:newer></p>

Offline

#2 2009-03-31 22:33:24

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: another older and newer question

mrtunes wrote:

does anyone know why the older and newer links won’t show up here?

Where? ;) Meaning: in which context are the links not being displayed? They only work on article list pages, so on an individual article page they wouldn’t show up. Also: do you have more than 2 articles?

Offline

#3 2009-03-31 23:05:11

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: another older and newer question

Els wrote:

mrtunes wrote:

does anyone know why the older and newer links won’t show up here?

Where? ;) Meaning: in which context are the links not being displayed? They only work on article list pages, so on an individual article page they wouldn’t show up. Also: do you have more than 2 articles?

——

yes i have more than 2 articles, and i also have a if_individual_article conditional in place. but it’s placed in the else part of the statement, so it should be on a list.

Offline

#4 2009-04-01 02:34:37

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: another older and newer question

so here’s a bit more. i know i saw the “older/newer” show up one time, but not since then:


<div id="left">
<txp:if_individual_article>
<div class='static'><div class='blockheading'><h2>News</h2></div></div>
<txp:article form="single" />
<txp:else />
<div class='static'><div class='blockheading'><h2>News</h2></div></div>
<txp:article form="news" section="newstest" limit="2" pgonly="0"  />
<p><txp:older>« <txp:text item="older" /></txp:older> 
			<txp:newer><txp:text item="newer" /> »</txp:newer></p>
</txp:if_individual_article>
</div>

Offline

#5 2009-04-01 02:41:50

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: another older and newer question

and now it seemed to show up for some reason after i moved off of the test page?

Offline

Board footer

Powered by FluxBB