I am - for a new, quite big project I am working on - running into an issue with the menu manager.
First of all, I am using CMSMS 1.5.1, together with the latest Menu Manager.
Now, the thing I'd like to achieve is to show the main menu and sub pages on a different line. No problem, works great. However, I want to show a certain line of text (something like: "There are no subpages for this page") when there are no subpages. At that point I am running into an issue;
I am calling my submenu with the following smarty:
And I have the following template for my sub menu:{menu template="sub-nav" start_level="2" number_of_levels="1"}
However, the $count variable is not functioning (if I render it in the menu, it doesn't display anything), and therefore the line does not show up.{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->current == true}
url}" class="current"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{else}
url}" {if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{/if}
{/foreach}
{else}
There are no pages to display here (just sample text!)
{/if}
Does anyone know another way around (I hate it when I have to work with "{if $node->depth == 2}" and so on.. or how to fix this??
Any help would be greatly appreciated!