Jump to content

Add class selected to block cms!


Slieptsov

Recommended Posts

Hello! I want to give "selected" css class with a green color to block cms links. At blockcategories we can see this code:

{if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if}

 

But when I use it to block cms like this:

{if isset($currentCmsId) && ($cmslink.id == $currentCmsId)}class="selected"{/if}

 

but nothing heppened. What I do wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...