Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » fourth level page not reflecting in side menu

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: 2405 Views
  • Arunesh
    Avatar
    Community Member
    2 Posts

    fourth level page not reflecting in side menu Link to this post

    I am using default theme.CMS allows me to add fourth level(menu) page and says published successfully.But i can not see the page in side bar menu.I tried it is on http://demo.silverstripe.com also. there also same problem is occurring .Please help.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: fourth level page not reflecting in side menu Link to this post

    The black candy doesnt have 4th level menu support. You can add it if you want by editing the themes/blackcandy/templates/Includes/Sidebar.ss file and adding another <% control Children %> statement in the current one

  • Arunesh
    Avatar
    Community Member
    2 Posts

    Re: fourth level page not reflecting in side menu Link to this post

    original code :sidebar.ss

    ---------------------------

    <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="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 class="clear"></div>
          </div>
       <div class="sidebarBottom"></div>
    </div>

    ----------------------------------------

    modified code

    ---------------------------------------------

    <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="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>
                                           <% 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 %>

                                <% end_control %>
                                </span>
                              </ul>
                           </li>
                       </ul>
                     <% end_if %>
                <% end_if %>
             </li>
             <% end_control %>
          </ul>
          <div class="clear"></div>
          </div>
       <div class="sidebarBottom"></div>
    </div>
    ------------------------------------------------------------

    still does not work please help

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