Hi,
My organization often creates asset live copies in our DAM. I want to create a filter that allows me to show all assets that are live copies, as well as show assets that are not live copies. Is there a property in AEM to be able to do this?
Thank you,
Morgan
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You can identify the live copies based on the following -
1. The live copy will have some properties under jcr:content like cq:lastRolledout and cq:lastRolledoutBy. These properties will exist under jcr:content/metadata also.
2. There will be a child node under jcr:content called cq:LiveSyncConfig.
You need to check existence of either of these properties. I am not sure how you can achieve using OOTB asset search filter predicates. You might need custom predicate.
You can identify the live copies based on the following -
1. The live copy will have some properties under jcr:content like cq:lastRolledout and cq:lastRolledoutBy. These properties will exist under jcr:content/metadata also.
2. There will be a child node under jcr:content called cq:LiveSyncConfig.
You need to check existence of either of these properties. I am not sure how you can achieve using OOTB asset search filter predicates. You might need custom predicate.
This is good to know. Thank you for your help!
Hi @MorganMe1,
To filter assets in AEM DAM based on their live copy status, you'll need to identify specific properties that denote whether an asset is a live copy. While AEM uses properties like cq:LiveSyncConfig and cq:LiveRelationship for pages, assets may have different or custom properties set by your organization.
Check if there are specific properties or custom metadata fields your organization uses to mark assets as live copies. You can also check by navigating to the asset nodes in CRXDE Lite to inspect their properties and see if cq:lastRolledout and cq:lastRolledoutBy are present.
Use AEM's Query Builder or JCR-SQL2 to create a query that filters assets based on the identified properties. For instance, if there is a property like isLiveCopy, you can query assets where this is true for live copies and false or nonexistent for others.
You can implement this filter in the AEM UI or as part of a custom component to display assets based on their live copy status.
A simple example of a query you might use:
SELECT * FROM [dam:Asset] AS asset WHERE ISDESCENDANTNODE(asset, '/content/dam') AND asset.[yourCustomProperty] = 'true'
This query will return all assets marked as live copies under the DAM path.
If you need further assistance in setting up this filter or have specific properties in mind, feel free to reach out!
Best regards,
Monalika Kapoor
Technical Support Consultant - AEM