Azure: How to set current category class in tpl/widget/header/topcategories.tpl

Hi,

I am using a copy of the azure theme
i want to put a class in the a-tag of the current class.
I tried to put [{if $ocont->expanded}]class=“current”[{/if}]
but that changes all toplevel navigation buttons and not only the current or active category.

What am i missing ?

Using:
Oxid CE 4.5
Azure Theme
tpl/widget/header/topcategories.tpl

Thanks in advance.

Hi,

ok, after doing just something else, i came to the following solution - works for me:

<li [{if $actCategory->oxcategories__oxtitle->value == $ocat->oxcategories__oxtitle->value}]class=“current”[{/if}]>

Quiet simple.