Jump to:

3431 Posts in 1025 Topics by 864 members

Template Questions

SilverStripe Forums » Template Questions » Second individual menu/navigation

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

Page: 1
Go to End
Author Topic: 728 Views
  • langhauserit
    Avatar
    Community Member
    1 Post

    Second individual menu/navigation Link to this post

    Hey Guys,

    i do the first migration from a website to SilverStripe CMS and i need your help for a individual menu/navigation.

    My normal navigation in the header and the submenu navigations works fine, but i need a third navigation in the footer. The heaviness is that i need to select which menu item will be shown in the footer navigation. So maybe there will be different selections for the main and the footer navigation. The menu item "Home" is shown in the main navigation but we won't show it in the footer navigation. In the other way i can use the selectbox "don't show in menu" so that a menu item will be shown in the footer navigation but not in the main navigation. I already tried the special menu (http://bit.ly/zuDW8F), but i can't use children in there.

    I hope you can help me.

    Thanks and Greetings from Munich.
    Oliver

    Attached Files
  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Second individual menu/navigation Link to this post

    What I usually do is create a boolean AddToFooterMenu to the Page class, and create a checkbox field for it in the CMS.

    IF the only thing needed is a single layer footermenu, I just create a getFooterMenu() function in the Page_Controller that returns a DatObject::get of all pages where AddToFooterMenu = false... In a multlayers itemap kind of menu you could also do a <% if AddToFooterMenu %> in your templates menu control loops...

    728 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.