Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-09-03 08:12:02
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
related articles active class
Any chance of an active class attribute for <code><txp:related_articles /></code> please. As this tag can be use to produce an article nav list it would be very useful.
Cheers, Lee
edit – be nice to have this for recent artles as well.
Last edited by lee (2006-09-03 08:30:45)
Offline
#2 2006-09-04 04:09:40
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: related articles active class
As far a related_articles go, you should never have the same article appearing in the list as the one being viewed. I think this is what happens in 4.0.3, but has been fixed in svn.
For recent_articles, Textpattern couldn’t know what article you’re looking at, because you typically don’t use it in a article form, but in a page. While you could work around this with conditional tag trickery, that seems like it would just be confusing?
Offline
#3 2006-09-04 07:18:49
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: related articles active class
As far a related_articles go, you should never have the same article appearing in the list as the one being viewed. I think this is what happens in 4.0.3, but has been fixed in svn.
You’re right in 4.04 that’s how it works, but having navagational menu items dissapear from a nav list when they are clicked seem contary to what I think most people would expect. Most nav’s I’ve ever seen highlight the current navagational menu selection. But I can see the reasoning in the way it works now, articles aren’t related to themselves so shouldn’t be in the list.
I guess what I’m after is a simple, built in, way to mark as active the current article from a list of articles in a given section.
Offline
#4 2006-09-05 00:10:02
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: related articles active class
It’s not meant to be used as a navigation menu, hence it’s expected output it different. It sounds like what you actually want to use is article_custom.
Offline
Pages: 1