How can I know if the actual form is edit or show ?
function getCMSFields() {
$fields = parent::getCMSFields();
// This is working for add form:
if( !$this->ID ) {
// form = add
// https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/add
}
// This is NOT working for show form:
if( $this->action == 'show' ) {
// form = show
// https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/item/12/show
}
return $fields;
}