Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Cant make menu


Reply

3 Posts   361 Views

Avatar
DoubleT

23 October 2011 at 3:22am Community Member, 2 Posts

Hi,
Today started to work with Silver Stripe and I really like this CMS.
Started to make my own layout ( based on tutorial layout ), but stuck with one thing.
I can't call sub-menus.

<% if Menu(1) %>
            <% control Menu(1) %>
               <% if Children %>
                  <% control Children %>
                  <li><a href="$Link">$Title</a></li>
                     <% if Children %>
                        <li>
                        <ul>
                        <% control Children %>
                        <li><a href="$Link">$Title</a></li>
                        <% end_control %>
                        </ul
                        </li>
                     <% end_if %>
                  <% end_control %>
               <% end_if %>
            <% end_control %>
            <% end_if %>

and screen from my admin panel ( where are all pages ) in attachment
i want to show in sidebar items which are in menu(1) Katalogs.
But Katalogs is checked out so it won't show in top menu.

Attached Files
Avatar
DoubleT

24 October 2011 at 9:40am Community Member, 2 Posts

no one?

Avatar
Webdoc

24 October 2011 at 10:21am Community Member, 332 Posts

http://www.silverstripe.org/general-questions/show/5342?start=24

try this