how to fetch the node properties of image in assets and use in component | Community
Skip to main content
Level 2
Mar 1, 2022 8:46 AM UTC
Solved

how to fetch the node properties of image in assets and use in component

Hi

 

i have a requirement that " usually we store image in assets , i had a carousel component, in that whenever i upload any particular image from assets in to carousel component, now i want to get the jcr:created  property value of that particular image & i want to display the jcr:created(date) property value in that carousel component.

 

example

suppose if i add some images in to my carousel component, i want to display that jcr:created date value.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Mar 1, 2022 9:20 AM UTC

Hi,

The date and other metadata properties stored in the node(jcr:content or metadata).

You can use these asset node/resource to fetch the meatdata properties in component Modal. 

You can check below for code reference : 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/accessing-dam-asset-metadata-programatically/m-p/260172

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Mar 1, 2022 9:20 AM UTC

Hi,

The date and other metadata properties stored in the node(jcr:content or metadata).

You can use these asset node/resource to fetch the meatdata properties in component Modal. 

You can check below for code reference : 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/accessing-dam-asset-metadata-programatically/m-p/260172

Translate
Arun Patidar