-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The Frontify finder can be filtered by extensions in
frontify/js/frontify_entity_form.js
Lines 39 to 52 in 9481b2b
values: [ | |
//'ai', | |
//'bmp', | |
//'eps', | |
'gif', | |
//'heif', | |
'jpeg', | |
'jpg', | |
'png', | |
'svg', | |
//'tif', | |
'tiff', | |
'webp', | |
], |
This is currently hardcoded to images, this was ported as is from 2.x branch of the module.
A first approach to limit the extensions would be in a Media provider as e.g. third party settings. But this doesn't make it very portable.
A better approach, that is entity type agnostic is to configure it on the field widget.
In that case, it's perfectly valid to e.g. use the Frontify field outside of a Media context.
Example use case: a taxonomy term with svg icons that doesn't need any other Frontify fields as it's just decorative.
Metadata
Metadata
Assignees
Labels
No labels