Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-26 10:41:51

marnemaz
New Member
From: Hungary
Registered: 2006-07-26
Posts: 3

<txp:older>, <txp:newer>

Hi

I use the following:

<code><txp:if_article_list></code>
<code><div> <txp:older>Previous</txp:older> <txp:newer> Next</txp:newer> </div></code>
<code></txp:if_article_list></code>

How can I do to show the “Previous” and “Next” strings if there are no older/newer articles? In that case they appear as a simple text and not as a link.

I looked over the include files but I got lost.

Thanks in advance.

Offline

#2 2006-07-26 10:55:51

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:older>, <txp:newer>

<txp:if_article_list>

	<div><txp:older showalways="1">Previous</txp:older> <txp:newer showalways="1"> Next</txp:newer></div>

</txp:if_article_list>

:)

Offline

#3 2006-07-26 11:02:37

marnemaz
New Member
From: Hungary
Registered: 2006-07-26
Posts: 3

Re: <txp:older>, <txp:newer>

Does not work. :(

Last edited by marnemaz (2006-07-26 11:58:58)

Offline

#4 2006-07-26 13:20:21

marnemaz
New Member
From: Hungary
Registered: 2006-07-26
Posts: 3

Re: <txp:older>, <txp:newer>

If anyone needs the solution:

Edit publish/taghandlers.php.
Change <code>return;</code> in line 644 and 679 to <code>return $thing;</code>

Offline

#5 2006-07-27 00:42:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:older>, <txp:newer>

Sorry, showalways is for link_to_next and link_to_prev, got them confused.

Offline

Board footer

Powered by FluxBB