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   2469 Views

Avatar
Arunesh

Community Member, 2 Posts

7 June 2008 at 12:07am

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

Forum Moderator, 5513 Posts

8 June 2008 at 8:03pm

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

Community Member, 2 Posts

9 June 2008 at 3:20am

Edited: 09/06/2008 3:22am

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