'Text', 'Title' => 'Text', ); /** * @return \SilverStripe\ORM\ValidationResult */ public function validate() { $result = parent::validate(); if (strlen($this->Content) === 0) { $result->addFieldError('Content', 'Content required'); } if (strlen($this->Title) === 0) { $result->addFieldError('Title', 'Title required'); } return $result; } public function canView($member = null) { return true; } public function canEdit($member = null) { return true; } public function canDelete($member = null) { return true; } public function canCreate($member = null, $context = array()) { return true; } }