Question: How can I add custom actions when looking at a DataObject in the cms?
Hello,
I am trying to find a way to add a dropdown or button with custom actions when viewing a dataobject in the cms (e.g. I would like to click a button that would trigger an email or similar).
I did see there is a way to do this on the SiteTree object (e.g. the Archive action). but I couldn’t quite find a way to do this on simple dataobjects. How would you advice I should approach this?
To clarify I am talking about this section of the cms when looking at a dataobject:
@theTigerDuck is it possible to add actions to a different part of the edit form eg. the top right corner of the page or to have a drop menu of actions instead? If I add multiple buttons for different actions it starts to get quite cluttered.
Also - I keep getting a “forbidden” error when I click on the button, despite having ItemEditForm listed as an allowed action (as per example code above). Any ideas?