Currently all field templates have to be placed in the wcf folder. If an application wants to create their own custom field, the template has to placed in the wcf folder as well. This change enables custom components to use their own template folder.
*/
protected $templateName;
+ /**
+ * name of the template's application used to output this field
+ * @var string
+ */
+ protected $templateApplication = 'wcf';
+
/**
* validation errors of this field
* @var IFormFieldValidationError[]
return WCF::getTPL()->fetch(
$this->templateName,
- 'wcf',
+ $this->templateApplication,
array_merge($this->getHtmlVariables(), [
'field' => $this
]),