Menu Editing Q - help pls?

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
cdndesigns
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 15, 2008 9:16 pm

Menu Editing Q - help pls?

Post by cdndesigns »

I'm using the BlueCity theme, which has a horizontal dropdown CSS Menu.  I have a user-friendliness navigational issue, because of the fact that the dropdowns SEEM like that's all there is and the section header pages don't seem like they are pages for users...

HEADER1          HEADER2          HEADER3  etc      top section visible all the time, highlights current on mouseover
  Sub1                Sub1                    Sub1         
  Sub2                Sub2                  Sub2                sub menu items only appear on mouseover

What happens as a user is that when you put your mouse on Header2 for example, then you get the dropdown of subitems visible, and you feel like you should only click on the sub items not the header itself.  Of course, priority-wise all the best and most important content is on the actual page belonging to Header, not in Sub pages, so I'm worried users will ignore the main  Header page content!

I am trying to get the "header" menu item to repeat again in the Sub items, as item #1 in the sub items, in same format as them.  My poking around and experimenting with the code hasn't given me the right results yet (aka I don't know what I'm doing!) .... can anybody in 45 seconds save me grief and stick the proper repeating chunk of code in the right place??

Pretty please and thanks much in advance!!
Myriam

This is the Menu Template file:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="unli">' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="menuactive menuparent">
<a class="menuactive menuparent" {elseif $node->current == true}
<li class="menuactive">
<a class="menuactive" {elseif $node->haschildren == true}
<li class="menuparent">
<a class="menuparent" {elseif $node->type == 'sectionheader' and $node->haschildren == true}
<li class="sectionheader"><span class="sectionheader">{$node->menutext}</span>{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="menu_separator" />{else}
<li>
<a {/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}"><span {if $node->hierarchy=="1"}class="first"{/if}>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
><span class="sectionheader">{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}
</li>
</ul>
<div class="clearb"></div>
</div>
{/if}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Menu Editing Q - help pls?

Post by Dr.CSS »

Most users know that if you hover a menu item and the pointer changes or the link underlines it's a link to a page but...

If you want the top menu elements to be just place holders for the ones below it you can use the Content type: internal link that links to the first child page, not always a good idea as you have to make the top one then make the child under it then go back and make the top one an internal link to the child...
cdndesigns
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 15, 2008 9:16 pm

Re: Menu Editing Q - help pls?

Post by cdndesigns »

Aahh.. had never realized you could do that!  Should fix my issue....
Post Reply

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