Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » problem with second menu

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1763 Views
  • silyanart
    Avatar
    Community Member
    7 Posts

    problem with second menu Link to this post

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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: problem with second menu Link to this post

    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

  • silyanart
    Avatar
    Community Member
    7 Posts

    Re: problem with second menu Link to this post

    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.

  • silyanart
    Avatar
    Community Member
    7 Posts

    Re: problem with second menu Link to this post

    solved tank

    1763 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.