I was thinking of hacing a Menu like this:
*Content1
*sectionHeader2
*Content3
*Content4
clicking on sectionHeader2 results in this:
*Content 1
*sectionHeader 2
*Content2.1
*sectionHeader2.2
*Content 3
*Content 4
so far I have this working, but I also want this functionality:
If you click on content 3 you get the page, content3, displayed and the menu changes to this:
*Content1
*sectionHeader2
*Content3
*Content3.1
*sectionHeader3.2
*Content4
so basically:
if a node has children it is clickable.
it will expand to show these children when clicked.
if the node has content (i.e it is not a sectionHeader) the content will be displayed when clicked.
here is my menu code:
and you can view the site here with menu:{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{assign var="listopen" value="0"}
{elseif $node->index > 0 && $listopen == 0}
{/if}
{if $node->index == 0}
{assign var="icon" value="house"}
{elseif $node->haschildren == true }
{assign var="icon" value="folder"}
{elseif $node->haschildren == false }
{assign var="icon" value="page"}
{/if}
{if $node->current == true}
{$node->menutext}
{if $node->haschildren == true }
{assign var="listopen" value="1"}
{/if}
{else}
{if $node->haschildren == true && $node->parent != true}
id}');">{$node->menutext}
{else}
id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{/if}
{if $node->haschildren == true && $node->parent != true}
{assign var="listopen" value="1"}
id}" class="expand" style="padding-left:14px;">
{elseif $node->parent == true}
{assign var="listopen" value="1"}
{/if}
{/if}
{/foreach}
{repeat string="" times=$node->depth-2}
{/if}
http://www.project-hydra.com/
currently the functionality I want exists to some extent:
click projects > vehicled > recumbents > failure
and then click on recumbents again (it is a content page).
Can anyone please help me with this? please?
-Leav