Menu link with description [SOLVED]

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
masama1
Forum Members
Forum Members
Posts: 10
Joined: Thu Jul 08, 2010 8:44 am

Menu link with description [SOLVED]

Post 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!
Last edited by masama1 on Thu Jul 22, 2010 6:21 am, edited 1 time in total.
uniqu3

Re: Menu link with description

Post by uniqu3 »

You will have to edit your MenuManager Template.
Take a look here http://wiki.cmsmadesimple.org/index.php ... nu_Manager
masama1
Forum Members
Forum Members
Posts: 10
Joined: Thu Jul 08, 2010 8:44 am

Re: Menu link with description

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

Re: Menu link with description

Post 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.
masama1
Forum Members
Forum Members
Posts: 10
Joined: Thu Jul 08, 2010 8:44 am

Re: Menu link with description

Post by masama1 »

What should i put there?
uniqu3

Re: Menu link with description

Post 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.
masama1
Forum Members
Forum Members
Posts: 10
Joined: Thu Jul 08, 2010 8:44 am

Re: Menu link with description

Post by masama1 »

You were so right! Thank you very much, this problem is solved now! ;D
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Menu link with description

Post by Dr.CSS »

Post Reply

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