Been looking for a while to figure this out - I am having people add content via UncleCheese's RemodelAdmin. I would like to add an Unpublish and Delete button to the modeladmin results table - I haven't worked with actions in the CMS so don't really know how to start. I'm guessing I will be adding a SummaryField, each with a custom button / link, and they will submit to a form action in the ModelAdmin. Any tips - where should I be looking? Thanks :)
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Thanks - I was looking to add the buttons into the actual results table (e.g. when you click Search in ModelAdmin, you get a list of DataObjects - or, in this case, Pages). On the right side, there is normally a red X to delete, but it's not bound to work with SiteTree objects - as they are on multiple stages. This one just deletes the record from one table. I thought it'd be cool to have in that list already an Unpublish and Delete button. I guess since deleting doesn't take place that often, they can just go in and Unpublish one by one :)