Page 1 of 1

Menu link with description [SOLVED]

Posted: Thu Jul 08, 2010 8:51 am
by masama1
I wnat to make menu with link description. For example link "About us" and then break and small description "Who we are". Can this be done by CMS? Where should i put descriptions and is there ready made tag for this?

Cheers!

Re: Menu link with description

Posted: Thu Jul 08, 2010 9:01 am
by uniqu3
You will have to edit your MenuManager Template.
Take a look here http://wiki.cmsmadesimple.org/index.php ... nu_Manager

Re: Menu link with description

Posted: Thu Jul 08, 2010 1:13 pm
by masama1
What is wrong with this? Description should be visible all the time. Now it's shows description of the one is activated?

{* CSS classes used in this template:
.currentpage - The active/current page
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}

{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}

{if $node->current == true}
url}" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}



{elseif $node->parent == true && $node->depth == 1 and $node->type != 'sectionheader' and $node->type != 'separator'}
url}" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}


{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}



{elseif $node->type == 'sectionheader'}
{$node->menutext}

{elseif $node->type == 'separator'}


{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}
{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}

{/if}
{/foreach}


{repeat string="" times=$node->depth-1}

{/if}

Re: Menu link with description

Posted: Thu Jul 08, 2010 1:19 pm
by uniqu3
This?
{elseif $node->parent == true && $node->depth == 1 and $node->type != 'sectionheader' and $node->type != 'separator'}
url}" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}


{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}
You say if it's current.

Re: Menu link with description

Posted: Thu Jul 08, 2010 1:23 pm
by masama1
What should i put there?

Re: Menu link with description

Posted: Thu Jul 08, 2010 1:29 pm
by uniqu3
If i am not wrong you can remove red marked stuff in your menu template:
{* CSS classes used in this template:
.currentpage - The active/current page
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}

{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}

{if $node->current == true}
url}" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{foreach from=$nodelist item=node}
{if $node->current == true}

{$node->titleattribute}
{/if}
{/foreach}




{elseif $node->parent == true && $node->depth == 1 and $node->type != 'sectionheader' and $node->type != 'separator'}
url}" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}


{foreach from=$nodelist item=node}
{if $node->current == true}

{$node->titleattribute}
{/if}
{/foreach}




{elseif $node->type == 'sectionheader'}
{$node->menutext}

{elseif $node->type == 'separator'}


{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}
{foreach from=$nodelist item=node}
{if $node->current == true}

{$node->titleattribute}
{/if}
{/foreach}


{/if}
{/foreach}


{repeat string="" times=$node->depth-1}

{/if}
Because you already do the {if} and {elseif} in the template when starting to build your template.

Re: Menu link with description

Posted: Thu Jul 08, 2010 3:51 pm
by masama1
You were so right! Thank you very much, this problem is solved now! ;D

Re: Menu link with description

Posted: Thu Jul 08, 2010 11:57 pm
by Dr.CSS