Jump to:

10851 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Unpublish / Delete buttons in ModelAdmin/ReModelAdmin

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 486 Views
  • KINKCreative
    Avatar
    Community Member
    56 Posts

    Unpublish / Delete buttons in ModelAdmin/ReModelAdmin Link to this post

    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

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts
  • KINKCreative
    Avatar
    Community Member
    56 Posts

    Re: Unpublish / Delete buttons in ModelAdmin/ReModelAdmin Link to this post

    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

    486 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.