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.
Any idea how to provide a custom field template. The only way I can right now is to duplicate the
AdvancedDropdownField.sstemplate and place it undermysite/templates/forms/AdvancedDropdownField.ssbut I don't want this customization to be a global change, I would like to use a specific template for this field withLinksDropdownFieldMy custom field is:
mysite/code/extensions/LinksDropdownField.phpAny help is appreciated.