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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Adding a custom tab into CMS

Go to End

6 Posts   2549 Views


Community Member, 4 Posts

12 March 2008 at 10:46am

Edited: 12/03/2008 10:47am

I sware this should be easier than it looks, i simply cannot find how to do this? ive looked through the forums, all the documentation, please tell me im blind.

How do you add a custom tab into the CMS with a content area the same as the first tab?



Community Member, 67 Posts

12 March 2008 at 11:01am

Have a look at tutorial 2: Extending a basic site:


Community Member, 4 Posts

12 March 2008 at 11:25am

Edited: 12/03/2008 12:33pm

For some reason, this isnt creating the tab 'RightCol'. Ive read the tutorial 3 times.

class HomePage extends Page {
    static $db = array(
        'SideText' => 'HTMLText'

class HomePage_Controller extends Page_Controller {
    function getCMSFields() {
        $fields = parent::getCMSFields();	
        $fields->addFieldToTab('Root.Content.RightCol', new TextField('SideText'));		
        return $fields;


Community Member, 4 Posts

12 March 2008 at 5:15pm

can anyone tell me why this isnt working?


Community Member, 37 Posts

12 March 2008 at 8:53pm

You have specified the data-type of db field SideText as HTMLText but then declared a new form-field of the type TextField. This should really be of the type HTMLEditorField if you want the form to display HTML.
That might be why the tab isn't being rendered...


Community Member, 4 Posts

14 March 2008 at 11:31am

Thanks for all the help guys, i simply had the getCMSFields function under the wrong class.