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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

Cant make menu


Go to End


3 Posts   968 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, 349 Posts

24 October 2011 at 10:21am