I am trying to populate four menu items in Silverstripe. I have managed to populate the first two menu items with SS using li class="area{$Pos}" in one div. However, the third and fourth menu items are in different div and class from the first two. I've been searching but not sure how to use SS to populate the third and fourth menus items in different div(/second div> and class? Sorry I'm new to it, so any help would be appreciated.
Here is my code.
<div id="top">
<ul class="sf-menu">
<% control Menu(1) %>
<li id="area{$Pos}">
<a href="#a">$MenuTitle</a>
<% if Children %>
<ul><% control Children %>
<li>
<a href="#aa">$MenuTitle</a>
<% if Children %>
<ul>
<% control Children %>
<li>
<a href="#aa">$MenuImg.SetSize(20,20) $MenuTitle</a>
</li>
<% end_control %>
</ul>
<% end_if %>
</li>
<% end_control %>
</ul><% end_if %>
</li>
<% end_control %>
</ul>
</div>
<div id="test" >
<ul class="sf-menu sf-vertical">
<li id="area3">
<a href="#a">Area 3</a>
</li>
<li id="area4">
<a href="#">Area 4</a>
<ul class="show_left">
<li>
<a href="#">Store one</a>
</li>
<li>
<a href="#">Store Two</a>
</li>
</ul>
</li>
</ul>
</div>