Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-31 06:55:48

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

[issue] Behaviour of link_to_prev

In my footer form I have link_to_prev : Image : link_to_next. Because it is in my footer this appears on every page.

On the front page or on an article list page, I would expect there to be no links to prev or next, but there are. It seems to choose a random article not related by posting time. I can wrap it all in if_individual_article so the links don’t show, but then the image disappears as well. I can wrap link_to_prev and link_to_next in if_individual_article, of course, and leave the image. But it seems like a lot of wrapping.

If it is front page or article list, could the default behaviour of link_to_prev and link_to_next be made so they are invisible?


BB6 Band My band
Gud One My blog

Offline

#2 2007-07-31 09:09:33

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [issue] Behaviour of link_to_prev

Wrapping is okay. I think link_to_prev should give a warning when used outside of its intended context, similar to many other article tags.

Offline

#3 2007-07-31 15:03:47

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

Re: [issue] Behaviour of link_to_prev

I’m considering this a bug, for the reason Ruud stated.

Offline

Board footer

Powered by FluxBB