Hi,
for a menu i parse the third level from sitetree. Every third level item is related to some dataobjects. These dataobject are nested under the related menuitem (<% control getFirmenforBanner %>) and link to the same template (e.g. http://www.blabla.de/handel-und-industrie/show/1/). What i want to do:
If the show parameter from URL is similar to the $ID within <% control getFirmenforBanner %>, then i want to write a "class="current" to the <li>.
Can anybody help?
<ul class="menu">
<% control Menu(3) %>
<li class="sublevel1"><a href="{$Link}" title="weiter in $Title.XML page" class="$LinkingMode"><span>$MenuTitle</span></a>
<% if LinkOrCurrent = current %>
<ul>
<% control getFirmenforBanner %>
<li class="sublevel2"><a href="{$URLSegment}/show/$ID">$Firmenname</a></li>
<% end_control %>
</ul>
<% end_if %>
</li>
<% end_control %>
</ul>
Greetings, Carsten