Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Question About Sibling Menus

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1340 Views
  • Sophie
    Avatar
    Community Member
    33 Posts

    Question About Sibling Menus Link to this post

    I've been using the following menu control to show sibling pages in the side bar of my third level pages.

                   <% control Menu(3) %>   
                   <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode<% if First %> top<% end_if %>"><span>$MenuTitle</span></a></li>
                   <% end_control %>            

    What I want to know is if there is a way to show all sibling pages in the sidebar, regardless of the level - so regardless of how deep in the site, the sibling pages will always show in the sidebar?

    Thanks!

    Sophie

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: Question About Sibling Menus Link to this post

    Dunno if this would work but how about:

    <% control Parent %>
    <% control Children %>
    Links go here

    <% end_control %>
    <% end_control %>

    cheers
    bruce

    1340 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.