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.
Views
Replies
Total Likes
@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&mode=single&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.
Views
Replies
Total Likes
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...
Views
Replies
Total Likes