Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Add checkbox to model admin


Reply

415 Views

Avatar
MrNick

8 March 2012 at 7:34am Community Member, 9 Posts

Morning,

I have setup a model admin, with a list of players.
These players have an 'Enabled' attribute, on the model admin search page, I want to show a tick box, when I can mass enable/disable people, and at the bottom have a save.

Is it possible to add a checkbox into the rows?

There is $summary_fields, but how can I add custom fields, and then add a button to the bottom to save this mass edit?