mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
ENHANCEMENT Using new template syntax
This commit is contained in:
parent
bf2d9cb1e5
commit
44cec3d0ac
@ -1,7 +1,7 @@
|
|||||||
<nav class="primary">
|
<nav class="primary">
|
||||||
<ul>
|
<ul>
|
||||||
<% control Menu(1) %>
|
<% loop Menu(1) %>
|
||||||
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
@ -2,14 +2,14 @@
|
|||||||
<% if Menu(2) %>
|
<% if Menu(2) %>
|
||||||
<nav class="secondary">
|
<nav class="secondary">
|
||||||
<h3>
|
<h3>
|
||||||
<% control Level(1) %>
|
<% loop Level(1) %>
|
||||||
$Title
|
$Title
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</h3>
|
</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<% control Menu(2) %>
|
<% 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>
|
<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_control %>
|
<% end_loop %>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user