Jump to:

23023 Posts in 11882 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » Default editable text inside header

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: 365 Views
  • Mrfixer
    Avatar
    Community Member
    49 Posts

    Default editable text inside header Link to this post

    Hi, im wanting to create my header so that it can be edited on a page per page basis (this i know how to do), but is there a way that on creation of this header i can add a default text that can populate the db for all of these pages, then should the Web editor require a different text he/she can override it for a particular page?..

    This is how i understand it should work:

    $fields->addFieldToTab("Root.Content.HeaderText", new HTMLEditorField( 'HeaderText', 'Text In The Header', 20, 20, 'My Default Text Here' ));


    Regards

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