Jump to content

Active link on CMS menu


FloFlo

Recommended Posts

Hi,

I have a CMS menu, and I want to keep the link selected when i'm on the selected page.
I don't know what to change in blockcms.tpl to do that.
Thank you for your help and sorry for my english.

FloFlo

Link to comment
Share on other sites

  • 8 months later...

Don't change blockcms.tpl. If you want the CMS category link or whatever added to your horizontal menu you would do the following:

 

 

 

Open tmheaderlinks.tpl file. You can find it by going to modules > tmheaderlinks > tmheaderlinks.tpl on your website server.

 

Then add this between <ul></ul>

 

<li><a href="{$link->getCMSLink('35','health')}"{if {$smarty.server.REQUEST_URI} == '/35-health'} class="active"{/if}>{l s='Health Products' mod='tmheaderlinks'}</a></li>

 

This will create a CMS link for you to a category called HEALTH with ID 35 and activate it when clicked.

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...