Hello! I have a problem. I am still a considerable beginner in the Silverstripe. (And, unfortunately, my English is very bad ...) for a project I need an interlocking menu with 4 levels. Unfortunately, only does not function. Can somebody check my code after mistake? Please, help me!
Thanks.
P.S. My code:
<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</em></span></a>
<% else %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% end_if %>
<% control Children %>
<% if LinkOrSection = section %>
<% if Children %>
<ul class="sub">
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% if LinkOrSection = section %>
<% if Children %>
<ul class="sub">
<li>
<ul>
<span class="roundWhite">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle</em></span></a></li>
<% end_control %>
</span>
</ul>
</li>
</ul>
<% end_if %>
<% end_if %>
</li>
</ul>
<% end_if %>
<% end_if %>
<% end_control %>
</li>
<% end_control %>
</ul>