Source of file GalleryPageImageExtension.php
Size: 0,564 Bytes - Last Modified: 2021-12-24T06:48:13+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/GalleryPageImageExtension.php
12345678910111213141516171819202122232425262728293031 | <?php class GalleryPageImageExtension extends DataExtension { /** * @var array */ private static $db = array( 'Caption' => 'varchar', ); /** * @var array */ private static $belongs_many_many = array( 'Image' => 'GalleryPage' ); /** * @param FieldList */ public function updateCMSFields(FieldList $fields) { $fields->addFieldToTab( 'Root.Main', TextField::create('Caption', 'Caption', $this->owner->Caption), 'Title' ); } } |