Jump to:

23355 Posts in 17702 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » 4th level sibling menu

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: 952 Views
  • mewho
    Avatar
    Community Member
    13 Posts

    4th level sibling menu Link to this post

    Hi all. How can i add a 4th (5th etc.) level sibling menu to the sidebar. i have tried modifications to the sidebar.ss page, but nothing shows up (and i really don't know what i am doing) i have been searching and searching, but could not find a clear answer. it is REALLY important. thanks,
    mewho

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: 4th level sibling menu Link to this post

    Do you have the code you used so far.

    What you will need to do is add an additional <% control Children %> block inside the last <% control %> to show another level.

  • iroy2000
    Avatar
    Community Member
    15 Posts

    Re: 4th level sibling menu Link to this post

    Hi Willr,

    I have the same issues and need some help (it is for 5th level). I have added extra control children inside the last control, but I don't see the 5th level showing up. I wonder what should I do on that? I can see the 4th level (which is default), but I don't see the 5th level even I add an extra control.

    <% if Children %>
    <ul class="sub">
    <li>
    <ul class="roundWhite">
    <% control Children %>
    <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>
    <% end_control %>
    </ul>
    </li>
    </ul>
    <% end_if %>

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