public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Main', DropdownField::create('VideoID', 'Select video', EmbeddedObject::get()->map("ID", "Title"))); $fields->addFieldToTab('Root.Main', EmbeddedObjectField::create('AddVideo', 'Video from oEmbed URL')); return $fields; }
public function Link($action = null) { if ($this->multiRecordAction) { return $this->form->FormAction() . '/field/' . $this->multiRecordAction . '/' . $action; } return parent::Link($action); }