Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2011-01-26 04:03:54

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

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 assume class=empty is 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

Board footer

Powered by FluxBB