Jump to:

3432 Posts in 1025 Topics by 865 members

Template Questions

SilverStripe Forums » Template Questions » What show the substitution of the other point main menu?

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 768 Views
  • BangMan
    Avatar
    Community Member
    7 Posts

    What show the substitution of the other point main menu? Link to this post

    Hello! Sorry for my english (I'm from Belarus ). I have Question on SilverStripe - there is such structure of the pages:

    Root
    |__Item-1 _____
    | |______subItem1-1 \
    | |______subItem1-2 \ SubMenu-1
    | |______subItem1-3 /
    | |______subItem1-4_____/
    |__Item-2 _____
    | |______subItem1-1 \
    | |______subItem1-2 \ SubMenu-2
    | |______subItem1-3 /
    | |______subItem1-4_____/
    |__Item-3 _____
    |______subItem1-1 \
    |______subItem1-2 \ SubMenu-3
    |______subItem1-3 /
    |______subItem1-4_____/
                      
    In Page.ss I write:   

    <% if Menu(2) %>
    <ul id="Menu2">
    <% control Menu(2) %>
    <li><a href="$Link"">$MenuTitle</a></li>
    <% end_control %>
    </ul>
    <% end_if %>

    If I Choose Item    "Item-1", then "SubMenu-1" is displayed, If I Choose Item    "Item-2", then "SubMenu-2" is displayed and etc.
    As possible do to if I shall choose "Item-1", then "SubMenu-1" and "SubMenu-2" is displayed   or if I shall choose "Item-2", then "SubMenu-1" and "SubMenu-1" and "SubMenu-3" is displayed?   

    768 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.