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   366 Views

Avatar
DoubleT

Community Member, 2 Posts

23 October 2011 at 3:22am

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

Community Member, 2 Posts

24 October 2011 at 9:40am

no one?

Avatar
Webdoc

Community Member, 332 Posts

24 October 2011 at 10:21am

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

try this