Basically a subclass of ModelAdmin for holding useful and common customisations. Based on the work of UncleCheese (http://www.leftandmain.com/uncategorized/2011/02/25/taming-the-beast-remodeling-modeladmin/) and Matt Clegg (https://github.com/mattclegg/remodeladmin)
- Nathan Cox (nathan@flyingmonkey.co.nz)
- SilverStripe 2.4+
- Place the files in a directory called remodeladmin in the root of your SilverStripe installation
- Visit yoursite.com/dev/build to rebuild the database
Default Summary Fields:
Can specify which summary fields are selected by default by putting something like this in the model:
static $summary_fields = array(
'Name' => 'Name',
'Email' => 'Email',
'Created' => 'Date',
'PageID' => 'Page'
);
static $default_summary_fields = array(
'Name',
'Email',
'Created'
);
Name, Email, Created and Page will all be available in the list of fields but only Name, Email and Created will be checked by default. If $default_summary_fields isn't set then everything in $summary_fields will be on by default.