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:

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   1018 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'));