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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
cyberman

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

Post 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}
Post Reply

Return to “Layout and Design (CSS & HTML)”