[solved] Menu Manager
Posted: Wed Sep 05, 2007 2:19 am
I am in the process of importing a template. I am having a bit of difficluty trying to figure out a menu.
The page is: http://bogeybluesgolf.com/cms/index.php ... ic-options
On the left hand side there are to navigation menus. The bottom one is hard coded in the content. The top one is the one I am working on converting to using the Menu Manager. I have it working sort of at this point, but it does not look right. I need to set the class='group' on the tag, but I am not sure how to without effecting the Main Horizontal menu. I am including the Menu Template. I have only changed a couple of minor things from the simple_navigation.tpl template.
Thanks!
Kenny
The page is: http://bogeybluesgolf.com/cms/index.php ... ic-options
On the left hand side there are to navigation menus. The bottom one is hard coded in the content. The top one is the one I am working on converting to using the Menu Manager. I have it working sort of at this point, but it does not look right. I need to set the class='group' on the tag, but I am not sure how to without effecting the Main Horizontal menu. I am including the Menu Template. I have only changed a couple of minor things from the simple_navigation.tpl template.
Code: Select all
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}
{if $count > 0}
<ul>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" 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->current == true}
<li class="selected"><dfn>Current page is {$node->hierarchy}: </dfn>{$node->menutext}
{elseif $node->parent == true}
{* <li class="activeparent"> *}
<li class="group"><a class="activeparent" href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
Kenny