I've created a custom field for my plugin and it's working great, but if I want to use the same field within my
templateDetails.xml I get an almost blank page in the template style edit page. I should probably mention that my
getInput() methods loads no layout, it simply returns an
<input> with a bunch of attributes.
Here's my templateDetails.xml part
<fieldset name="advanced" label="Some FIELDSET NAME" addfieldpath="/plugins/editors-xtd/myPlugin/models/fields"> <field name="myFieldName" type="myFieldType" label="SOME LABEL" hint="Some hint" description="" class="" format="HTML" default="" /> </fieldset>
The console say: Failed to load resource: the server responded with a status of 500 (Internal Server Error)
The page title says Error: 0 Call to undefined function random()
Is there something wrong here or am I missing something with my field?
random(), so while all my custom field instances were using an ID in the
templateDetails.xml file, I couldn't figure out what's going on.