on the 'evaluator' tab at http://www.cropinsurancesolutions.com/test , you will see that i have a(n ugly!) menu that shows children as navigation for what will evenutally be a fairly extensive list. currently, the state name is a link and i want it to not be - there should be no content for that page, it just used as a backboard for the subpages (similar to how the evaluator page works as a backboard for this list of links - made possible by the 'start_element' tag).
currently my menumanager code for this menu is:
Code: Select all
{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->parent == true or ($node->current == true and $node->haschildren == true)}
<li><a
{elseif $node->current == true}
<li><a
{elseif $node->haschildren == true}
<li><a
{else}
<li><a
{/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
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}>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1} </li>
</ul>
<div class="clearb"></div>
{/if}
Code: Select all
{hierarchy}{cms_module module='menumanager' start_element=$h_this template='evaluator' collapse='0' start_element="4.1"}Code: Select all
{hierarchy}{cms_module module='menumanager' start_element=$h_this template='evaluator' collapse='0' start_element="4.1.1" show_root_siblings='1'}to recap, i have a list of child links and i do not want the top level to be a link:
- State Name - NO LINK
- [li]County - LINK
- County - LINK
