Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-07-29 18:39:57

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

txp:older styling / variable

when I use txp:older as a container tag, it functions correctly, and doesn’t show on the last page of an article_list.

however, I can’t apply any styling to the links that are generated. is that right? no class attribute on txp:older?

when i used it in the manner below, it shows up all the time, even on the last page of an article list.

<a href='<txp:older '>more</a>

i tried to create a variable to check to see if <txp:older /> generates content, but it’s always reporting back as empty…

<txp:variable name="morearticles" value='<txp:older />' />
<txp:if_variable name="morearticles" value=""><txp:else />display this</txp:if_variable>

it always comes back as true, even if there are more articles (which should make it false).

what am i missing?

Offline

#2 2014-07-30 06:27:25

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: txp:older styling / variable

On the styling, could you cheat a little and wrap it inside a styled span?

Offline

#3 2014-07-30 10:28:56

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: txp:older styling / variable

claywso wrote #282518:

i tried to create a variable to check to see if <txp:older /> generates content, but it’s always reporting back as empty…

Have you used the older tags below the article tag?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB