Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » problem: third level menu don't work

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 649 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    problem: third level menu don't work Link to this post

    Hi!
    I have a problem to add aothe level menu in this example:
    If I have menu I want see menu2 (if there is), menu3 and menu4. My doubt is where to add code . I try different solution but nothig is correct. Can you help me? I post code for second leve menu

    <div id="Sidebar" class="typography">
       <div class="dbx-group" style="position: relative; display: block;">
       <div class="sidebarBox dbx-box">
          <h3 class="dbx-handle">
             <% control Level(1) %>
                $Title
             <% end_control %>
          </h3>
          <div class="dbx-content">
          <ul id="Menu2">
              <% control Menu(2) %>
              <% if Children %>
                  <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
               <% else %>
                    <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
                <% end_if %>   
              
                 <% if LinkOrSection = section %>
                    <% if Children %>
                      <ul class="sub">
                         <li>
                             <ul>
                                <span class="roundWhite">
                                <% control Children %>
                                    <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle</em></span></a></li>
                                <% end_control %>
                                </span>
                              </ul>
                           </li>
                       </ul>
                     <% end_if %>
                <% end_if %>
             </li>
             <% end_control %>
          </ul>
          </div>
       </div>
          <!-- <div class="clear"></div> -->
          </div>
    </div>

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