I am trying to isolate only the current page and it's children, showing the links on the left side.
For some reason, I am getting a complete list of links for all pages and their children.
Here are the pages in the backend:
Homepage
About
Product
Widget1
Details
Specifications
Overview
Widget2
Details
Specifications
Overview
Widget3
Sitemap
Here is an example of what I want to show up when I am on Widget1's page:
Widget1
Details
Specifications
Overview
What would I need to do to get it to display that way? I am using the current:
<ul>
<% control Menu(1) %>
<% if LinkorSection = section %>
<% if Children %>
<% control Children %>
<h2><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode"<% if is_a(RedirectorPage) %> target="_blank" <% end_if %>><span>$MenuTitle</span></a></h2>
<% end_control %>
<% end_if %>
<% end_if %>
<% end_control %>
</ul>
Thanks for anyone's help on this!