Jump to:

23545 Posts in 19310 Topics by 2888 members

General Questions

SilverStripe Forums » General Questions » Custom CMS

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: 325 Views
  • alana
    Community Member
    7 Posts

    Custom CMS Link to this post


    I want to customise the backend CMS, starting with a couple of simple changes. To for example this dataObject:

    private static $db = array(
    'SpeventID' => 'Int',
    'Name' => 'Varchar',
    'Description' => 'Text',
    'Description' => 'Text',

    As you can see the first field/column 'SpeventID' is not very user-friendly. Is it possible to add a custom label without having to change the column value?

    Also if I have a 'date' data type in my database I want to provide a clickable calendar rather than expecting the user to input a string in a particular format. Similarly I'd like to provide a file select box for certain fields, if for example the field is a file name?

    Is any of this possible?



  • zenmonkey
    Community Member
    528 Posts

    Re: Custom CMS Link to this post

    CMS feild names only default to the column name if no title is given. You can specify the title when you create the field in you getCMSFeids function. The "Extending a basic site" tutorial covers this quite well http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site

    The tutorial covers how to handle file and date fields as well

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.