framework icon indicating copy to clipboard operation
framework copied to clipboard

MediaType field is not supported on term meta.

Open jminguely opened this issue 5 years ago • 1 comments

Hello,

I'm trying to attach a media field to a term from a specific Taxonomy.

TaxonomyField::make($type)
            ->add(Field::media('image'))
            ->set();

The code is working perfectly with a text field but is returning the following error with a media type of field:

Field Themosis\Forms\Fields\Types\MediaType is not supported on term meta.

jminguely avatar Aug 05 '19 10:08 jminguely

Yup the media field is not yet compatible for use inside a taxonomy term as well as from an option page, ... it only exists for metabox as a ReactJS component.

You need to create a custom field for use inside a term.

Currently there is a thinking to have in order to provide JS based fields for all screens (from Gutenberg editor, metabox, terms, ...) I still haven't found the right solution so if you have any suggestion, it is welcomed :)

jlambe avatar Aug 30 '19 10:08 jlambe