Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-06-04 17:41:57
- urbangypsy
- New Member
- Registered: 2007-06-04
- Posts: 1
session variables?
Does TextPattern have anything like session variables? I’d like to style the current item (section label) in my global navbar differently from the others.
Offline
Re: session variables?
See the “active_class” attribute on the <txp:section_list /> tag
Offline
#3 2007-06-04 18:23:31
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: session variables?
If it’s for sections then the section_list tag supports that state.
If it’s for a custom article list on menu then this plugin works
Otherwise you can use RAW PHP in Textpattern provided you place it in the right tags, rather then standard php opening tags <txp:php> </txp:php>
For current nav highlighting I tend you use CSS and section tag in the body class.
<body class=”<txp:section />”>
Offline
Pages: 1