Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-12 17:00:22

squeegoi
New Member
Registered: 2006-11-12
Posts: 2

How do I get the "new" button to remain visible on the "new" page?

I’ve got textpattern set up in a webcomic format, so that the comic goes up as that day’s image, associated with one post, so browsing back and forth through posts also browses through the comics.

My problem is that on the first page, the link to that page dissapears. Also on the newest page, the link to the newest page disappears.

Example Code:
<img src=“images/next.gif” width=“96” height=“29” border=“0” alt=”“ /></txp:newer>

The image “next.gif” is the image button I’m using to link to the next page. If I’m in the middle of a ton of posts, everything is fine, but as soon as I get to the latest post, there is no “next” page, so the “next.gif” doesn’t appear. This also happens for the “new” button when on the latest page, and the “back” and “first” button on the oldest page.

Is there a way to keep the image displayed even when there is no actual link associated with the image?

Offline

#2 2006-11-12 17:16:55

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How do I get the "new" button to remain visible on the "new" page?

Try: <txp:newer showalways="y"><img ... /></txp:newer>

Offline

#3 2006-11-12 17:41:16

squeegoi
New Member
Registered: 2006-11-12
Posts: 2

Re: How do I get the "new" button to remain visible on the "new" page?

Hmm, well, it was worth a try. My code now looks like

<txp:newer showalways=“y”><img src=“images/next.gif” width=“96” height=“29” border=“0” alt=”“ /></txp:newer>

But that didn’t work. Just for kicks, I typed in showalways=“yes” and that didn’t work either.

Offline

#4 2006-11-12 20:58:52

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

Re: How do I get the "new" button to remain visible on the "new" page?

showalways="1" :)

Offline

#5 2006-11-13 23:38:43

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

Re: How do I get the "new" button to remain visible on the "new" page?

Just an fyi: very few tags still use y/n versus 1/0, and they will be phased out soon.

Offline

Board footer

Powered by FluxBB