Page 1 of 1

[SOLVED] Can start_page just show children and not the parent?

Posted: Fri Jan 18, 2008 4:35 pm
by cb2004
Currently I have start_page="weddings" which shows a wedding section with all its children, but how do I not display the parent as I am already linking to that using includeprefix="weddings,lifestyle,hair,creative,commercial" as it is a main link on my site.? Will I have to change the menu template which is:

Code: Select all

{if $count > 0}{strip}{counter start=0 name=itemcount assign=itemcount print=false}{foreach from=$nodelist item=node}{counter name=itemcount print=false}{if $itemcount ne '1'}<em>|</em>{/if}{if $node->current eq true}{$node->menutext}{else}<a href="{$node->url}">{$node->menutext}</a>{/if}{/foreach}{/strip}{/if}
Edit: The code block doesnt work very well in these forums.

{if $count > 0}{strip}{counter start=0 name=itemcount assign=itemcount print=false}{foreach from=$nodelist item=node}{counter name=itemcount print=false}{if $itemcount ne '1'}|{/if}{if $node->current eq true}{$node->menutext}{else}url}">{$node->menutext}{/if}{/foreach}{/strip}{/if}

Thanks all.

Re: Can start_page just show children and not the parent?

Posted: Fri Jan 18, 2008 6:00 pm
by RonnyK
You can use the start_level parameter, to show only the children of the selected main-level, like:

Code: Select all

start_level="2" 
to only show the children of the selected menu....

Ronny

Re: Can start_page just show children and not the parent?

Posted: Fri Jan 18, 2008 10:04 pm
by cb2004
Legend.

Thank you.

Re: Can start_page just show children and not the parent?

Posted: Sat Jan 19, 2008 10:36 am
by RonnyK
If the topic is solved, would you edit the subject-line of the first post, to mark [Solved].

Ronny

Re: Can start_page just show children and not the parent?

Posted: Mon Jan 21, 2008 4:38 pm
by cb2004
Ok this did not work. I have {menu template="Menu" start_page="weddings" start_level="2"} but nothing changed? Is this a bug? It still shows the parent.

Re: Can start_page just show children and not the parent?

Posted: Tue Jan 22, 2008 8:21 am
by cb2004
Did anybody get this to work? I think this may be a bug in the latest release.

Re: Can start_page just show children and not the parent?

Posted: Tue Jan 22, 2008 1:30 pm
by RonnyK
cb2004,

what do you want to achieve, as the last posts shows another menu, than I expected. I thought you were showing several parents, and that another menu, should only show the children of the selected. Can you explain a little more of what you want to do.....

Ronny

Re: Can start_page just show children and not the parent?

Posted: Tue Jan 22, 2008 1:50 pm
by cb2004
I have solved this by using {menu template="Menu" start_level="2"}. I thought you meant add start_level to my existing menu code but that did not work for me.