Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

problem with second menu


Go to End


4 Posts   2488 Views

Avatar
silyanart

Community Member, 7 Posts

5 September 2009 at 5:39am

Hello I want to create a second menu independent of the first, but nn I can, someone can help me please.tank

Avatar
Willr

Forum Moderator, 5523 Posts

5 September 2009 at 11:32am

How do you mean independent? The Second Level will depend on what Level 1 page you are on. If you just want to show children of any parent page go

<% control Page(parent-page-url) %>
<% control Children %>
// will return the children of the parent-page-url page independent of what page you are on.
<% end_control %>
<% end_control %>

You can see more information about the menu controls on the wiki http://doc.silverstripe.com/doku.php?id=built-in-page-controls

Avatar
silyanart

Community Member, 7 Posts

6 September 2009 at 7:24am

Hello, not a submenu, but a completely different menu from the first. 1 sample menu: home - about - gallery - ETC.
Menu 2: FAQ - opensource - login - etc.
in different areas of the template.
You can assign a node to a different menu (Menu 1 or Menu 2) from backoffice?
thanks.

Avatar
silyanart

Community Member, 7 Posts

8 October 2009 at 3:29pm

solved tank