Jump to:

1384 Posts in 493 Topics by 522 members

Themes

SilverStripe Forums » Themes » Multi Level Menu in blackcandy theme

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 872 Views
  • ronaan
    Avatar
    Community Member
    9 Posts

    Multi Level Menu in blackcandy theme Link to this post

    Hello,

    sorry if the question has been answered; I looked through search results for two hours and did not get any further:

    I want another menu level to be shown in the sidebar. Currently it looks like:

    Something1
    Something2
    Something3
    Something4
    Something5

    When I click on one of the entries, it changes (like it should) to:

    Something1
    -subSomething1.1
    -subSomething1.2
    Something2
    Something3
    Something4
    Something5

    Now imagine I have a page that fits under subSomething1.1, hierarchically... i.e. it would be sub_subSomething 1.1.1 for example.

    I've tried copy/pasting stuff from the SideBar.ss into itself but I never found the right spot... please help. I'm no coder, unfortunately.
    I never get the sub_sub pages to show in the sidebar.

    <div id="Sidebar" class="typography">
       <div class="sidebarBox">
          <h3>
             <% control Level(1) %>
                $Title
             <% end_control %>
          </h3>
          
          <ul id="Menu2">
              <% control Menu(2) %>
              <% if Children %>
                  <li class="$LinkingMode"><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
               <% else %>
                    <li><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
                <% end_if %>   
              
                 <% if LinkOrSection = section %>
                    <% if Children %>
                      <ul class="sub">
                         <li>
                            <ul class="roundWhite">
                               <% control Children %>
                                  <li><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>
                               <% end_control %>
                            </ul>
                         </li>
                      </ul>
                     <% end_if %>
                <% end_if %>
             </li>
             <% end_control %>
          </ul>
          <div class="clear"></div>
       </div>
       <div class="sidebarBottom"></div>
    </div>

  • ronaan
    Avatar
    Community Member
    9 Posts

    Re: Multi Level Menu in blackcandy theme Link to this post

    Found the solution after browsing a few more search replies. Last post on pg1 by Willr helped me tons http://www.silverstripe.org/archive/show/2614?start=0

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