Hi,
I am trying to create a side navigation menu similar to the following:
index
company
- info1
- info2
products
- product1
- product2
contact
I have tried several coding methods and controllers for the last 3 hours, but cant get it to display the way I want, as follows:
1. While on the 'index' page, I only want the menu to show 'index, company, products, contact'
2. When on the 'company' page, I want it to display 'index, company (info1, info2), products, contact'
3. When on the 'products' page, I want it to display 'index, company, products (product1, product2), contact'
These must all display as shown above with each subpage listed under its parent page, ONLY IF on that parent page. The latest code I have been trying is as follows, but it displays all the sub-pages no matter what page parent I am on...
<% control Menu(1) %>
<li><a href="$Link" title="Go to the $Title.XML page" <% if LinkingMode %>class="$LinkingMode"><% end_if %>$MenuTitle</a>
<% if Children %>
<% control Children %>
<li class="sub"><a href="$Link" title="Go to the $Title.XML page" class="$LinkOrSection">$MenuTitle</a></li>
<% end_control %>
<% end_if %>
</li>
<% end_control %>
If someone could show me the correct code to use, it would be much appreciated, thanks in advance guys!
Andy