How can I generate a dynamic custom icon-picker generic list
I have a task to create a custom icon-picker. As you may know, AEM already has a prebuilt generic list of icons and icons fonts. In my case, I would like to generate a fresh list of icons without making use of the ones AEM provides, as this is what I am required to do.
basically I understand one needs to do this and define a datasource:
<icon xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured" fieldLabel="Icon" name="./icon" sling:resourceType="acs-commons/components/authoring/graphiciconselect"> <datasource jcr:primaryType="nt:unstructured" path="/etc/acs-commons/lists/font-awesome-icons" sling:resourceType="acs-commons/components/utilities/genericlist/datasource"/> </icon>
In the case above we are using AEM genericlist datasource. Now I would like to create my own, basically by using my icons. How would one create this list without manually going onto the AEM GUI and create each one at a time. How can the icon-list be generated automatically each time one wanted to update the list. So in my case I am going to be given a list of icons, how to I auto-generate a genericlist I can use as my datasource from that?
I hope I am making sense, thanks