menu problems (wacked up urls)
Posted: Thu Jul 27, 2006 2:16 am
I'm not sure what went wrong. This is the third time I've used CMSMS for differnt clients and the third time has been very trying. I'm using a template (with horizontal dropdown menus) that I downloaded from sourceforge.
Here's the link http://heartsandhandsforhaiti.org/ ... when you click on a menu item, you get a 404 error and a wacky url (for example ... http://heartsandhandsforhaiti.org/index ... tent_types ). When I take the 'index.php' out of the address I still get a 404.
I check'd the menu manager but none of the stuff about nodes makes sense. Can someone demystify it for me? Thanks.
Page Template code here ...
Menu Template from menu manager ...
Here's the link http://heartsandhandsforhaiti.org/ ... when you click on a menu item, you get a 404 error and a wacky url (for example ... http://heartsandhandsforhaiti.org/index ... tent_types ). When I take the 'index.php' out of the address I still get a 404.
I check'd the menu manager but none of the stuff about nodes makes sense. Can someone demystify it for me? Thanks.
Page Template code here ...
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<__html>
{global_content name='JavaScript for IE page width'}
<head>
<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- Type the title of your site here -->
<title>Hearts and Hands for Haiti - {title}</title>
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<__script__ src="uploads/javascript/sucker.js"></__script>
{global_content name='JavaScript for IE page width'}
</head>
</__body>
<div id="pagewrapper">
<div id="container">
<!-- start accessibility skip links -->
<ul class="accessibility">
<li><a href="#menu_vert" accesskey="1" title="Skip to navigation">Skip to navigation</a></li>
<li>{cms_selflink anchorlink='main' dir='anchor' text='Skip to content'}</li>
</ul>
<!-- end accessibility skip links -->
<hr />
<!-- Start Header, with logo image that links to the default start page -->
<div id="header" class="clearfix">
<h1>{cms_selflink dir="start"}</h1>
<hr />
</div>
<!-- End Header -->
<!-- Start Horizontal Menu -->
<div id="menu_horiz">
<h2 class="accessibility">Main Navigation</h2>
<div id="wrapper">
{cms_module module='menumanager' template='Horizontal_dropdown : my_nav' }
</div>
</div><!-- end topnav -->
<!-- End Horizontal Menu -->
<!-- Start sub nav -->
<div class="subnav"></div>
<!-- End sub nav -->
<!-- Start Breadcrumbs -->
<div class="breadcrumbs">
{breadcrumbs starttext='.:' root='Home' delimiter='»'}<br>
<hr />
</div>
<!-- End Breadcrumbs -->
<!-- Start Content (Navigation and Content columns) -->
<div id="content" class="clearfix">
<!-- Start Sub Navigation -->
<!-- <div id="menu_vert">
<h2 class="accessibility">Sub Navigation</h2>
{cms_module module='menumanager' template='Horizontal_dropdown : ellnav-accessible' start_level='2' collapse='1'}
<hr />
</div> -->
<!-- End Sub Navigation -->
<!-- Start Content Area -->
<div id="main">
{content} <br />
</div>
<!-- End Content Area -->
<!-- Start Second Content Block -->
<div id="content2">
{content block='block1'}
<hr>
<center><p>Hearts and Hands for Haiti<br>
2013 Midwood Drive<br>
Raleigh NC 27604<br>
Phone: 919-836-1929<br>
<a href="mailto:stan@heartsandhandsforhaiti.org">Contact HHH</a>
</p></center>
</div>
<!-- End Second Content Block -->
</div>
<!-- End Content -->
<!-- Start Footer -->
<div id="footer" class="clearfix">
{global_content name='footer'}
</div>
<!-- End Footer -->
</div><!-- end container -->
</div><!-- end pagewrapper -->
<__body>
</__html>
Menu Template from menu manager ...
Code: Select all
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page. Used both for the horizontal main menu and the top level in the vertical submenu.
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. Also used for the horizontal <ul> to use the entire width of the block element that it is wrapped in. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}
<ul class="clearfix" id="nav">
{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 && $node->depth == 1}
<li class="active0{$node->depth}"><dfn>{$node->hierarchy}: </dfn><h3>{$node->menutext}</h3>
{elseif $node->current == true && $node->depth > 1}
<li class="active0{$node->depth-1}"><dfn>{$node->hierarchy}: </dfn><h3 class="clearfix">{$node->menutext}</h3>
{elseif $node->parent == true && (($node->depth == 1) or ($node->depth == 2))}
<li class="activeparent"><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 ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>{elseif $node->type == 'sectionheader'}
<li class="sectionheader"><h3 class="clearfix">{$node->menutext}</h3>{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"><hr class="clearfix" />
{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 ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-2}</li>
</ul>
{/if}