Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-11-09 14:48:35
- MrPS
- Member
- Registered: 2011-11-09
- Posts: 34
active class to linklist
Hi Textpattern.
It would be great, if you could add the function “active_class” to <txp:linklist />.
Offline
Re: active class to linklist
What’s the use case?
It’s a linklist-tag which is used to produce a list of links from the predefined list created on the Links tab.
Last edited by merz1 (2011-11-09 23:18:00)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#3 2011-11-10 13:05:05
- MrPS
- Member
- Registered: 2011-11-09
- Posts: 34
Re: active class to linklist
I know what the linklist tag is ;o).
Sometimes the section_list tag and / or the category_list tag, doesn`t give the user enough control over the menu. This is where the linklist tag becomes handy, since the user, can type in the specific links, in a predefined list under the Links tab. All it really needs, is a way, to highlight the current link in the menu.
Offline
#4 2011-11-10 14:41:26
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: active class to linklist
The linklist tag isn’t meant to be used for site internal links. Although it doesn’t stop you from doing so, it should feel rather hampered for site internal nav.
You’re way quicker defining certain articles to be listed in an article list by giving them a category (or defining a special custom field), and then let TXP do the work for you. Inside the article form you can mark the active article by means of <txp:if_article_id> class="active"</txp:if_article_id>
or similar. (Note that you don’t need the ID for this use case.)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline