Source of file SectionTextBlock.php
Size: 0,419 Bytes - Last Modified: 2021-12-23T10:11:59+00:00
/var/www/docs.ssmods.com/process/src/code/Blocks/SectionTextBlock.php
12345678910111213141516171819202122232425262728 | <?php class SectionTextBlock extends Section { private static $db = array( 'Content' => 'HTMLText' ); public static $has_one = array( 'SectionTabBlock' => 'SectionTabBlock' ); public function getCMSFields() { $fields = parent::getCMSFields(); $fieldList = FieldList::create( HtmlEditorField::create('Content') ); $fields->addFieldsToTab('Root.Main', $fieldList ); return $fields; } } |