-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Any idea how to provide a custom field template. The only way I can right now is to duplicate the AdvancedDropdownField.ss
template and place it under mysite/templates/forms/AdvancedDropdownField.ss
but I don't want this customization to be a global change, I would like to use a specific template for this field with LinksDropdownField
My custom field is:
mysite/code/extensions/LinksDropdownField.php
class LinksDropdownField extends EditableDropDown
{
// more code here
public function getFormField()
{
$field = new AdvancedDropdownField($this->Name, $this->EscapedTitle, $this->optionsList());
$field->setTemplate('LinksDropdownField');
$this->doUpdateFormField($field);
return $field;
}
}
Any help is appreciated.
Metadata
Metadata
Assignees
Labels
No labels