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.

Themes /

Discuss SilverStripe Themes.

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

3 level subnavigation


Reply


1153 Views

Avatar
HanSolo

Community Member, 83 Posts

12 February 2010 at 2:32am

Edited: 12/02/2010 5:04am

Hi everyone.

I have been trying to solve a problem, I am a neewbie to SS, especially php.

I am trying to incorporate a 3 level subnaviagtion to Blackcandy

About us
- People
- --Joakim
- --other
-Location
- Other

I did the following changes to 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.XML</em></span></a>
           <% else %>
                <li><a href="$Link" title="Go to the $Title.XML page" 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="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>
--my changes--
<% if Children %>

<ul class="subsub">
                     <li>
                        <ul class="roundWhite">
                        <% control Children %>
                        <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>

<% end_control %>
</ul>
</li>
</ul>

<% end_if %>
-- end my changes--
                           <% end_control %>
                        </ul>
                     </li>
                  </ul>
                 <% end_if %>
            <% end_if %>
         </li>
         <% end_control %>
      </ul>
      <div class="clear"></div>
   </div>
   <div class="sidebarBottom"></div>
</div>

The proble I get is when i click on About us I can see the sublevel under people I want them to show when you click on people, the strange thing is when i click on Location the sublevel under People is hidden but when i click on Location the sublevel shows under people.

I have been seaching the forum for to many hours . Can anyone point me in the right direction.

Joakim