Plugin

Archived
Forum
(read-only)

EE2 Child Categories

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Nico De Gols

     

Using variable in conditional

General

dencreative
dencreative

Hi there, I’m using this to list a naviagtion of sub categories, and I want to highlight the active menu by using the following -

<li {if last_segment == "{child_category_name}" class="current" {/if} 

 

But for some reason this isn’t working - anyone got any ideas???

lincolnpixel
# 1
lincolnpixel