Document Type - DropDown with programatic data source

Hello,

From the exiting documentation: https://documentation.bloomreach.com/13/library/concepts/plugins/selections/configuration.html I know that a DropDown from a DocumentType can be populated either with some static value or dynamic values taken from a ValueListDocument (source property) or from another custom document (valuelistProvider property).

My question is: could the data source of a DropDown from a DocumentType (then available only for Editors) be populated from a Java map (so only be set programatic by the developers)? I was thinking that maybe something similar to the @ParametersInfo interface that exists for the Channel Settings (that is available for the editors in the CMS application - Channel.

Thank you,
Cornelia

Hi,

We have examples of coded ValueListProviders at [1], which are bootstrapped as in [2]. Then reference those services by id in the field (editor template) configuration.

HTH
Jeroen

[1] https://code.onehippo.org/cms-community/hippo-plugin-selections/blob/hippo-plugin-selections-13.4.1/essentials-demo-feature/src/main/resources/cmsFiles/
[2] https://code.onehippo.org/cms-community/hippo-plugin-selections/tree/hippo-plugin-selections-13.4.1/essentials-demo-feature/src/main/resources/yamlFiles

That is brilliant!!
Exactly what I needed.

Thank you Jeroen