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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

SS 3.1 wont allow me to add custom CMS actions


Go to End


2 Posts   1551 Views

Avatar
BigD1214

Community Member, 24 Posts

12 August 2014 at 7:59am

Hey guys!
I need help, I went through the documentation and cannnot get my custom CMS action buttions to show up on my dataobject in the CMS. I am using the getCMSActions() with

$actions = parent::getCMSActions();
// new action
$fields->insertAfter(FormAction::create('normal','Normal Button'));

Will not show in the CMS Please help with any insights. Thanks!

Avatar
Willr

Forum Moderator, 5523 Posts

12 August 2014 at 8:15pm

You aren't specifying a field for the button to show 'after'. Try $fields->push(FormAction::create('normal','Normal Button'));