\DMSDocumentAdmin
Synopsis
class DMSDocumentAdmin
extends ModelAdmin
{
- // members
- private static array $managed_models = ;
- private static string $url_segment = 'documents';
- private static string $menu_title = 'Documents';
- private static string $menu_icon = 'dms/images/app_icons/drawer.png';
- // methods
- public void init()
- public CMSForm getEditForm()
- protected CMSForm modifyGridField()
Hierarchy
Extends
- ModelAdmin
Members
private
- $managed_models
- $url_segment
Methods
protected
- modifyGridField() — If the GridField is for DMSDocument then add a custom "add" button. If it's for DMSDocumentSet then update the display fields to include some extra columns that are only for this ModelAdmin, so cannot be added directly to the model's display fields.
public
- getEditForm() — Remove the default "add" button and replace it with a customised version for DMS
- init()