Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-10-10 08:31:21

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: conditional txp:newer / txp:older

as i wrote before, the nesting doesn’t seem to work.

first page
middle page
last page

last page is not correct.
(the delimiter is br)


we is experts™

Offline

#14 2006-10-10 08:33:31

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: conditional txp:newer / txp:older

Mary wrote:

The tag error doesn’t make much sense, are you sure you’re using older/newer on your page, and not link_to_next/link_to_prev (which can only be called from an article form)?

quite possible ;-) probably my bad, i’ll check it (only on localhost at home)


we is experts™

Offline

#15 2006-10-10 10:10:50

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

Re: conditional txp:newer / txp:older

Sorry, I wasn’t thinking straight, link_to_next/link_to_prev are callable from a page, it’s if_first_article/if_last_article that are not.

Grr….

Offline

#16 2006-10-10 13:12:45

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

Re: conditional txp:newer / txp:older

minusf wrote:

but i think this showalways is not documented in the wiki, is it?

Is is in the wiki: txp:older, but it says [4.0.4], meaning that it can’t be done yet :)

Offline

#17 2006-10-18 03:13:18

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: conditional txp:newer / txp:older

Minusf:

I created this to solve the exact problem: http://forum.textpattern.com/viewtopic.php?pid=128028

Offline

#18 2006-10-18 07:20:57

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: conditional txp:newer / txp:older

variaas wrote:

I created this to solve the exact problem:
http://forum.textpattern.com/viewtopic.php?pid=128028

if only txp:newer has this attribute, i think it’s not very flexible.
i mean what if i want to use

<txp:newer> | <txp:older>

instead of

<txp:older> | <txp:newer>

which is not very logical, but certainly possible..

also, could you please post an example of usage?
how do you know what is the seperator between the 2?


we is experts™

Offline

Board footer

Powered by FluxBB