Firesphere / silverstripe-newsmodule

Silverstripe 3 Newsmodule
BSD 2-Clause "Simplified" License
24 stars 10 forks source link

Enhancement: publish / unpublish news item in gridfield #129

Closed wernerkrauss closed 10 years ago

wernerkrauss commented 10 years ago

Is it possible to create another action to publish / unpublish an news item from the gridfield? This way we don't have to open it, search for "publish" and save it again.

Firesphere commented 10 years ago

This would require an update to the GridField, I'd rather see something like that added to a module like this: https://github.com/ajshort/silverstripe-gridfieldextensions After which, it could be implemented here.

wernerkrauss commented 10 years ago

Maybe https://github.com/colymba/GridFieldBulkEditingTools/blob/master/BULK_MANAGER.md is an option, too...?

Firesphere commented 10 years ago

Could be, but I don't think bulk manager is available at that point. Anyway, closing this issue, as for said reason, a dedicated GridField module should handle this. (But feel free to comment with questions :) )

wernerkrauss commented 10 years ago

http://doc.silverstripe.org/framework/en/howto/gridfield-rowaction

seems you can add custom actions very easily

wernerkrauss commented 10 years ago

Did a more or less rough hack as shown in the docs, please have a look at it: https://github.com/wernerkrauss/silverstripe-newsmodule/tree/gridfieldpublishaction needs some polishing before it's a real PR...

Firesphere commented 10 years ago

Feel free to make a pull-request for that one. Showing it's published-status in the overview that way is hardly a "hack" :)