Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Customs filelds in top menu

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 746 Views
  • mazu
    Avatar
    Community Member
    3 Posts

    Customs filelds in top menu Link to this post

    Hi,
    I want to make editable header and footer. I sholud have new tab in top silvewrstripe menu, and in drop down menu options - footer and header, after clicking on them silverstripe should load html editor with my editable footer and header. This options are global, and not connected with any instance of any page.

    Is it possible to do something like this? Where should I save the data, and where program the forms to edit this footer and header?

  • bmc38119
    Avatar
    Community Member
    45 Posts

    Re: Customs filelds in top menu Link to this post

    not sure if you want to go about it in this way, but i have done this numerous times.

    create a hidden document at the root of your site as a container (this is not necessary, but organizationally nice) called "site resources", then you can create child pages (hidden) under there and use these pages to contain your header and footer data (either use the standard content field or custom fields for other data types).

    + site resources
    ++ header
    ++ footer
    ++ something else

    you can then call these pages by name in your template and pull in the content from this page as your header.

    746 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.