Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Newbie question on sidebars

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

Page: 1
Go to End
Author Topic: 276 Views
  • AstroDaz
    Community Member
    3 Posts

    Newbie question on sidebars Link to this post

    Hi all

    SS: 3.0.2
    MySQL: 5.5.24
    PHP: 5.4.3
    Apache: 2.4.2
    Win 7 64-bit

    I am slowly getting to grips with how SS is laid out and have managed to add a new page type with an additional field into the CMS.... OK so far.

    Now, I would like to be able to choose a sidebar for a page, from a list of sidebars that have been created in the CMS.
    My thoughts are:

    Create a SideBarPage page type, hidden from the menu
    Create a parent SideBarHolder page type, allowing children of SideBarPage, hidden from the menu
    Create an additional field in the CMS with a drop-down list of any SideBarPage that exist
    Have the layout automatically include the content from the chosen sidebar

    The first two bits I can do! Well, I can create a drop-down list OK, but how can I link that to the SideBarHolder childen?
    And then how do I use that in the layout?

    Any pointers gratefully received


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.