Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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

Custom CMS

Go to End

2 Posts   659 Views


Community Member, 7 Posts

25 February 2014 at 5:10am


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?




Community Member, 545 Posts

25 February 2014 at 1:47pm

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

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