Loading...
 
Skip to main content

Features / Usability


Menus dependant on Category

My web site has well defined areas of interest and I have split the web pages into categories. The web site now has different themes for the different categories. How is it possible to change the menus depending on the category?

I have seen an example for how to change the menu dependant on language. Perhaps this is the way to go, but how to implement this?

Tip: for multilingualism, you can use the following syntax in your custom module to display a
different menu depending of the current language:
{if $language eq 'fr'}
{menu id=44}
{elseif $language eq 'es'}
{menu id=45}
{else}
{menu id=43}
{/if}


After tests I was able to apply menus based on

{if $category eq 'Admin'}
{menu id=44}
{elseif $category eq 'Something'}
{menu id=45}
{else}
{menu id=43}
{/