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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

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

Post 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.
Last edited by cb2004 on Tue Jan 22, 2008 1:51 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

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

Post by cb2004 »

Legend.

Thank you.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post by RonnyK »

If the topic is solved, would you edit the subject-line of the first post, to mark [Solved].

Ronny
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

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

Post 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.
Last edited by cb2004 on Mon Jan 21, 2008 4:40 pm, edited 1 time in total.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

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

Post by cb2004 »

Did anybody get this to work? I think this may be a bug in the latest release.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

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

Post 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.
Post Reply

Return to “CMSMS Core”