I want to get the value/values selected by an author when they select a standard tag in metadata schema.
Example: In the custom metadata schema for an asset, I have a tag field, where I have selected /content/cq:tags/test/1
I want to get this value "/content/cq:tags/test/1".
I have to apply this to the metadata field only, as I want to get this value for all the assets, not for a single one.
Here is my use-case:
Requirement:
AEM Version: 6.5
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@Anmol_Bhardwaj If you're programmatically looking to fetch this metadata, you can use below API and getAssetMetadata() method.
https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/adobe/granite/asset/api/Asset.html
The metadata is stored on node /jcr:content/metadata of the asset which you can verify in crxde
Can please you elaborate your question a bit more? What exactly your requirement?
this is what you are looking for?
Hi @Dipti_Chauhan,
Here is my use-case:
Requirement:
@Anmol_Bhardwaj If you're programmatically looking to fetch this metadata, you can use below API and getAssetMetadata() method.
https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/adobe/granite/asset/api/Asset.html
The metadata is stored on node /jcr:content/metadata of the asset which you can verify in crxde
@shelly-goelThis will only give me the metadata of a single asset right?
As I would be putting the path to a single asset.And need to write a new code or traverse through a lot of (child)nodes to get value for all of them. Which is not feasible in my case.
I need to fetch the value automatically for every asset that the user uploads. Sort of like a listener on the metadata field to get me the value every time.