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.

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   578 Views


Community Member, 15 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!


Forum Moderator, 5521 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'));