Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

ACS Commons Generic List

Avatar

Level 6

ACS Commons Generic List is present under /etc, but is it possible to use the list from /apps?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Shaheena_Sheikh,

If you are using the Generics list for dialogues, then you can place it right under /apps. Just make sure you are using the expected resourceType (acs-commons/components/utilities/genericlist) when creating the generics list resource. I have just tested this out by placing my generics list under /apps/my-site/lists, and it is working fine.

 

 

<textColor
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/form/select"
        fieldLabel="Text Color"
        name="./textColor">
    <datasource
            jcr:primaryType="nt:unstructured"
            sling:resourceType="acs-commons/components/utilities/genericlist/datasource"
            path="/apps/my-site/lists/customcolors"/>
</textColor>

 

 

 

View solution in original post

2 Replies

Avatar

Community Advisor

I don't think so. You'll to extend this functionality for customization per your equirements.

Avatar

Correct answer by
Community Advisor

@Shaheena_Sheikh,

If you are using the Generics list for dialogues, then you can place it right under /apps. Just make sure you are using the expected resourceType (acs-commons/components/utilities/genericlist) when creating the generics list resource. I have just tested this out by placing my generics list under /apps/my-site/lists, and it is working fine.

 

 

<textColor
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/form/select"
        fieldLabel="Text Color"
        name="./textColor">
    <datasource
            jcr:primaryType="nt:unstructured"
            sling:resourceType="acs-commons/components/utilities/genericlist/datasource"
            path="/apps/my-site/lists/customcolors"/>
</textColor>