Skip to content

Instantly share code, notes, and snippets.

@daslicht
Created June 18, 2014 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daslicht/058518a90b3029fb2c7d to your computer and use it in GitHub Desktop.
Save daslicht/058518a90b3029fb2c7d to your computer and use it in GitHub Desktop.
///themes/simple/templates/Includes/Sidebar.ss
Tutorial:
<ul>
<% loop $Menu(2) %>
<li class="$LinkingMode">
<a href="$Link" title="Go to the $Title.XML page">
<span class="arrow">&rarr;</span>
<span class="text">$MenuTitle.XML</span>
</a>
</li>
<% end_loop %>
</ul>
SilverStripe-cms-v3.1.5:
<aside class="sidebar unit size1of4">
<% if $Menu(2) %>
<nav class="secondary">
<% with $Level(1) %>
<h3>
$MenuTitle
</h3>
<ul>
<% include SidebarMenu %>
</ul>
<% end_with %>
</nav>
<% end_if %>
</aside>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment