Forums / Cotonti / Support / Highlight Active Category

Show button/link in header as active

Yusupov
#38725 2013-12-05 06:18

The condition for profiles link:

<!-- IF ({PHP.env.location} == 'pages' OR {PHP.env.location} == 'list') AND ({PHP.c|cot_structure_parents('page', $this, 'first')} == 'profiles' OR {PHP.pag.page_cat|cot_structure_parents('page', $this, 'first')} == 'profiles') -->active<!-- ENDIF -->

The condition for cars link:

<!-- IF ({PHP.env.location} == 'pages' OR {PHP.env.location} == 'list') AND ({PHP.c|cot_structure_parents('page', $this, 'first')} == 'cars' OR {PHP.pag.page_cat|cot_structure_parents('page', $this, 'first')} == 'cars') -->active<!-- ENDIF -->