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.

Themes /

Discuss SilverStripe Themes.

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

Products Menu on all pages


Reply


5 Posts   1883 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, 5513 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, 334 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 [url=http://www.arvixe.com/preloaded_silverstripe_hosting/]SilverStripe Web Hosting[/url]? Look no further than [url=http://www.arvixe.com/]Arvixe Web Hosting[/url]!