Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

fourth level page not reflecting in side menu


Reply

3 Posts   2462 Views

Avatar
Arunesh

7 June 2008 at 12:07am Community Member, 2 Posts

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.

Avatar
Willr

8 June 2008 at 8:03pm Forum Moderator, 5511 Posts

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

Avatar
Arunesh

9 June 2008 at 3:20am (Last edited: 9 June 2008 3:22am), Community Member, 2 Posts

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