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.

Customising the CMS /

Extend the Navigation Menu


Reply


2 Posts   1403 Views

Avatar
BigChris

Community Member, 63 Posts

21 June 2010 at 12:59am

Hello,

I like the way SilverStripe outputs the Navigation Menu so it can be controlled via Menu() on the template files.

However can it be extended?
As I would like to be able to display the menu into grouped items. By this I mean add a label and possibly an order so that I can display the menu in footer links grouped together by label.

The reason for this is so that the main menu navigation renders as the it looks on the sitetree but have the footer render footer links grouped by label.

Included is a screen shot of the template. The menu is as the sitetree has it, but the footer is what I am trying to change. There are 3 columns, the first being the output from the sitetree and the other 2 as I would like it to be.

I am thinking I need to extend sitetree, is that correct?
Also does anyone have any links to topics on extending the sitetree?
(Looked on google and the forums but not came across anything yet.)

Cheers
Chris

Attached Files
Avatar
craesh

Community Member, 25 Posts

22 June 2010 at 8:34pm

Hi Chris!

What about this idea: Put your menu items into the second menu level and "misuse" the first menu level for your labels. You will then display both first menu levels.

Greetings
craesh