Expand my Community achievements bar.

Asset Finder inside of AEM Content Fragments

Avatar

Level 2

Is it feasible to enhance AEM Content Fragments by integrating an asset finder within them? We are considering developing a custom Content Fragment component that would enable us to author and manage a collection of assets or images seamlessly.

2 Replies

Avatar

Level 1

@sanjeevkumart45 it is possible without developing a content fragment component. You can use all dialog components inside the content fragment. Simply use the pathfield component with the pickerSrc element set. Here is a example : 

 <file
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
                                fieldLabel="Image"
                                name="fileReference"
                                listOrder="1"
                                maxlength="255"
                                metaType="text-single"
                                pickersrc="/mnt/overlay/dam/cfm/admin/content/v2/associated-content/assetpicker.html?root=/content/dam&amp;mode=single&amp;filter=nosystem"
                                valueType="string"
                                renderReadOnly="false"
                                showEmptyInReadOnly="true"/>

 

You can set the root path inside of the pickerSrc.
For further reference please check the documentation.

Avatar

Level 2

Thank you but my question is, Can I be able to use any of the core components inside of a content fragment? Like the Carousel from here below.

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/c...