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

Avatar
Muj

30 March 2011 at 4:08am Community Member, 3 Posts

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

30 March 2011 at 6:11pm Forum Moderator, 5511 Posts

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

31 March 2011 at 3:16am Community Member, 3 Posts

Thank you Will..that is so simple

Avatar
Naren

21 September 2013 at 6:13am Community Member, 21 Posts

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

21 September 2013 at 9:30am Community Member, 332 Posts

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]!