Silverstripe 2.2.x Notes

 


 

20090302 I want to lose the sidebar as I need the full width for some tables, so I'm playing with horizontal menus

Help: http://doc.silverstripe.org/doku.php?id=built-in-page-controls&s=control%20level%20menu

Edited Vista theme navigation.ss:

<ul class="menu">
     <% control Menu(1) %>      
          <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><b>$MenuTitle</b></a></li>
       <% end_control %>
</ul>

<% control Level(1) %>
    <% if Children %>
        <ul class="menu">
        <% control Children %>
              <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><b>$MenuTitle</b></a></li>
        <% end_control %>
        </ul>
    <% end_if %>
<% end_control %>

<% control Level(2) %>
    <% if Children %>
        <ul class="menu">
        <% control Children %>
              <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><b>$MenuTitle</b></a></li>
        <% end_control %>
        </ul>
    <% end_if %>
<% end_control %>

<% control Level(3) %>
    <% if Children %>
        <ul class="menu">
        <% control Children %>
              <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><b>$MenuTitle</b></a></li>
        <% end_control %>
        </ul>
    <% end_if %>
<% end_control %>