Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-30 04:00:48

Wade
New Member
From: Frisco, TX
Registered: 2004-05-25
Posts: 3
Website

How can I tell if txp:older AND txp:newer would be empty?

I want to add a heading of “More Articles” before my txp:older and txp:newer links but I don’t want it to show up if neither link will be displayed. I couldn’t find a txp:no_newer_or_older_links_are_going_to_be_listed tag!

Offline

#2 2005-11-30 04:10:30

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How can I tell if txp:older AND txp:newer would be empty?

That’s because there isn’t one. I’m not sure you can do exatly what you want yet. You could put the text between one or both tags but…


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-01 02:56:21

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

Re: How can I tell if txp:older AND txp:newer would be empty?

He wants if_older and if_newer tags. You could check to see if someone has made a plugin to do this. Check the resources site (link at the top of the page) for one. If you can’t find one, come back to this thread and let me know. I’ll make one. :)

Offline

Board footer

Powered by FluxBB