Created
June 18, 2014 10:00
-
-
Save daslicht/058518a90b3029fb2c7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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">→</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