Jump to:

5552 Posts in 1742 Topics by 1226 members

Customising the CMS

SilverStripe Forums » Customising the CMS » SS 3.1 wont allow me to add custom CMS actions

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

Page: 1
Go to End
Author Topic: 84 Views
  • BigD1214
    Avatar
    Community Member
    15 Posts

    SS 3.1 wont allow me to add custom CMS actions Link to this post

    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!

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: SS 3.1 wont allow me to add custom CMS actions Link to this post

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

    84 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.