Show button/link in header as active
| Yusupov |
|
|---|---|
|
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 -->
|