Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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?
Offline
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