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.

Themes /

Discuss SilverStripe Themes.

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

Products Menu on all pages


Go to End


5 Posts   3102 Views

Avatar
Muj

Community Member, 3 Posts

30 March 2011 at 4:08am

Guys,

I am trying to create a home page which has one of the submenu ( Products submenu) to appear on all pages in the left column vertically and main navigation on top horizontally and the level 2 menu to appear on the right column

Menu structure is like this

about us, ( History, Team, Awards)
services, ( Service1, Service2)
products, ( Product1,Product2,Product3,Product4,Product5)
request info,
contact

I would appreciate if you can please let me know how to achieve this or may be a template..Thanks in advance

Attached Files
Avatar
Willr

Forum Moderator, 5523 Posts

30 March 2011 at 6:11pm

You can build that products menu using <% control ChildrenOf(products) %>. ChildrenOf returns a list of children under a given url (this case products)

http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#and-lt-control-childrenof-page-url-and-gt

Avatar
Muj

Community Member, 3 Posts

31 March 2011 at 3:16am

Thank you Will..that is so simple

Avatar
Naren

Community Member, 21 Posts

21 September 2013 at 6:13am

Hi Will,

I also want to create same type of menu but the link which you have posted has been removed. Could you please guide how can i create that.

Thanks in advance

Avatar
Webdoc

Community Member, 349 Posts

21 September 2013 at 9:30am

The link is http://doc.silverstripe.org/framework/en/2.4/reference/built-in-page-controls#and-lt-control-childrenof-page-url-and-gt

-------------------------------------------------------------------------------------------------------------------------------------------------------

Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!