I'm sure this has been covered a few times but I'm unable to find a solution to what I think should be a fairly simple problem.
Here is my basic code...
<% control Menu(1) %> <li> <a href="$Link" title="$Title">$MenuTitle</a> <% if Children %> <div class="sub-nav"> <ul> <% control Children %> <li> <a href="$Link" title="$Title"> $MenuTitle <br/> <span>$MenuDesc</span> </a> </li> <% end_control %> </ul> </div> <% end_if %> </li> <% end_control %>
I need to add a class to the <li> on the 6th child inside <div class="sub-nav">, which in theory I can to in a function within the Page_Controller, however I can't call these functions from within a <% control %> loop. Does anyone know a work around for this?