Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: category_list not setting active_class
Els wrote:
Sorry, I noticed I made a mistake in my last code example, corrected it now.
not sure how to use
<txp:else />? Altho i assumeclass=emptyis fine
Something like this:
<li><txp:category class='<txp:if_variable name="cat" value=''<txp:category />''>active<txp:else />inactive</txp:if_variable>' title="1" link="1" /></li>
BTW, on second thought I think you can just as well replace <txp:page_url type="c" /> with <txp:category /> in the <txp:variable /> tag in this code.
lovely! many thanks…
…. texted postive
Offline