Jump to:

1369 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » 3 level subnavigation

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1029 Views
  • HanSolo
    Avatar
    Community Member
    83 Posts

    3 level subnavigation Link to this post

    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

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