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.

Archive /

Our old forums are still available as a read-only archive.

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

Functionality of <% include Navigation %>


Go to End


2 Posts   2156 Views

Avatar
rube

Community Member, 8 Posts

11 July 2008 at 4:36am

Edited: 11/07/2008 4:39am

Hi,
Forgive for my grammar, Englishman is not my first language .

1First.- I want to know which is exactly Navigation.ss's functionality.?

2Second.- I can modify in order that my menu is drop-down?

Thank you. I hope that they help me

Avatar
Willr

Forum Moderator, 5523 Posts

11 July 2008 at 9:21pm

all <% include * %> Does is include the code from another ss file into the file which it is called from. The functionality of the actually Navigation is found in themes/blackcandy/templates/Includes/Navigation.ss - which just has a control loop to output all the menu 1 items. For more info on controls for navigation etc see tutorial 1 which covers the basics

You can modify that order in the CMS in the site tree on the left tick the allow drag and drop and then you can click and drag pages in the order you wish