Page 1 of 1

Re-use left column in "Top + Leftmenu" when no childs are available

Posted: Tue Jun 05, 2007 8:59 am
by RonnyK
Is there a method, without using different templates for pages that have no childs, to have the left column filled with other data then being blank if no childs are available. I would like to re-use that space with other content (image f.e.).

Ronny

Re: Re-use left column in "Top + Leftmenu" when no childs are available

Posted: Tue Jun 05, 2007 9:54 am
by cyberman
You have only to add a condition in MM template. You found that

Code: Select all

{if $count > 0}
...
{/if}
in every MM template (begin/end). This requests if menu contains entries. Modify it to

Code: Select all

{if $count > 0}
...
{else}
   {image ...}
{/if}