Source of file ContentBlock.php
Size: 0,367 Bytes - Last Modified: 2021-12-23T10:37:35+00:00
/var/www/docs.ssmods.com/process/src/code/model/ContentBlock.php
12345678910111213141516171819202122 | <?php class ContentBlock extends Block { static $db = array( 'Title' => 'Text', 'Content' => 'HTMLText' ); static $singular_name = "Content Block"; function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldsToTab('Root.Main', array( TextField::create('Title'), HTMLEditorField::create('Content') )); return $fields; } } |