Hey guys,
I really need help. I don't know much about SS and I'm in struggle with the menu.
Before I try to explain my issue, I just Copy & Paste my code.
<div class="dropdown
<% control Menu(1) %>
<% if LinkOrSection = section && Children %>
<% if LinkingMode = current %>
open
<% else %>
<% control Children %>
<% if LinkOrSection = section && LinkingMode = current && Children %>
open
<% end_if %>
<% end_control %>
<% end_if %>
<% end_if %>
<% end_control %>" id="leftnavigationDropdown">
All I want is to check if the current page have subpages. This would be ok if I don't use this again. But I do. So I repeat myself..
So here's my question: Can I define a variable in the backend to do this? Like "<% if HaveChildren %>open<% end_if %>"?