need to restore default menu behavior/layout

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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

need to restore default menu behavior/layout

Post by jmcgin51 »

Ok, I'm now running 1.02, upgraded from .13.  My default bullet menu was working fine in .13, but somehow in the upgrade, it got screwed up (see http://forum.cmsmadesimple.org/index.ph ... 172.0.html).  I've been working on this on and off for weeks, with no solution.

How can I restore the default menu layout/format/whatever??  I've copied default stylesheets from a fresh .13 install, copied default templates, and still the menu doesn't work right.  What am I missing?  Where is the menu behavior controlled?  I'm a complete dunce when it comes to the Menu Manager, so if there's something I need to do there, please be specific.

I did not attempt to alter the default menu structure or behavior when I was running .13, so it appears that the 1.02 update must have been where the problem occurred, but I wouldn't think I'd be the only one with this issue.

Many thanks...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: need to restore default menu behavior/layout

Post by Dr.CSS »

Not sure which bullet menu you used so here is both...

You will need to copy these into a new menu template and call it in your tag...

standard
{* 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}" class="currentpage"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
{$node->menutext}
{elseif $node->type == 'separator'}

{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/if}
{/foreach}

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

{/if}
accessible...
{* 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}

{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}
depth}">Current page is {$node->hierarchy}: {$node->menutext}{elseif $node->parent == true && $node->depth == 1}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->hierarchy}: {$node->menutext}{elseif $node->type == 'sectionheader'}
{$node->menutext}{elseif $node->type == 'separator'}
{else}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->hierarchy}: {$node->menutext}{/if}
{/foreach}
{repeat string="" times=$node->depth-1}

{/if}
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: need to restore default menu behavior/layout

Post by jmcgin51 »

thanks, Mark.  Hopefully this will work...  talk about frustrating!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: need to restore default menu behavior/layout

Post by jmcgin51 »

MARK, YOU ARE A GENIUS!!!!!!!!!!!!!!!  THANK YOU, THANK YOU, THANK YOU!!!!!

Now, here's my question.  If I don't call a specific menu template in my page template, what menu template does the page template use?  How can I edit that default template??

Right now I have the page looking good, thanks to your help.  BUT, I had to create a new menu template and call it in my page template, as you suggested.  What I want to do is edit (overwrite) the original default menu template with the code you provided, so that I can remove the "special" menu template call.  How can I access that default template?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: need to restore default menu behavior/layout

Post by Dr.CSS »

The default for {menu}, without a template call "template="***"",,,  is the simple_navigation.tpl it is in the Menu Manager folder in templates  /modules/MenuManager/templates/
if you FTP to your site you can overwrite it...

You have a backup on your computer in the CMSMS folder that you uploaded to your site from, so if anything goes wrong you can reupload that file...
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: need to restore default menu behavior/layout

Post by jmcgin51 »

awesome, thanks...
Post Reply

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