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 /

SS 3.1 wont allow me to add custom CMS actions


Reply


2 Posts   126 Views

Avatar
BigD1214

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!

Avatar
Willr

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