Skip to content

Use Custom Pickers

Jahia Files (Picture, Video, PDF) external Pickers are using EDP (External Data Provider) system where you need to define an object in JCR to reference the external file informations (like extension, size, external URL, width, height, etc…)

In case you want a simple picker from a String definition Gladtek had created one for Pictures for example

definitions.cnd
[gladnt:bynderDat] > jnt:content, gladmix:gladComponent
- picture (string) mandatory
jahia-content-editor-forms/fieldsets/gladnt_bynderDat.json
{
"name": "gladnt:bynderDat",
"fields": [
{
"name": "picture",
"selectorType": "DatPicker"
}
]
}

This case does not need a second validation using Bynder Java API and it stores directly the URL in the selected Field