Use a plugin defined field inside template

by thednp   Last Updated May 13, 2019 19:10 PM

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?

Tags : custom-field


Related Questions


Updated September 03, 2018 06:10 AM

Updated November 06, 2017 11:10 AM

Updated April 26, 2017 10:10 AM

Updated May 26, 2018 16:10 PM

Updated July 16, 2018 21:10 PM