Image A is expiring and there are 20 different folders in AEM.
Before removing Image A, I will need to identify which of the 20 folders is associating with Image A.
How do I go about doing so?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Audrey27,
In case you have copy of the same image in multiple folders in the DAM, you can simply run query e.g from crx/de. Below is an example of query that will search for all the folders that contains image with specific name. You can easy change criteria from name to other property. The example query will look for all folders in entire DAM (/content/dam) that includes asset with name 48-hours-of-wilderness-1.jpg
SELECT * FROM [nt:folder] AS folder INNER JOIN [dam:Asset] AS asset ON ISCHILDNODE(asset, folder) WHERE ISDESCENDANTNODE(folder, "/content/dam") AND name(asset) = "48-hours-of-wilderness-1.jpg"
However, if by folders associated with asset you mean collections, then you can get list of the collections that include reference to given asset under asset properties. Below is sample screen, it shows list of all references so pages and collections - you can easy recognize collection by its location.
How you are associating 20 folders with image A?
You need to copy in each and every folder .
For pages you can check in properties reference tab it will display the list of pages where your image is in use.
Hi,
you can check the asset reference from asset properties https://experienceleague.adobe.com/docs/experience-manager-65/assets/managing/managing-linked-subass...
Just curious to know, How are you associating multiple DAM folders with same image and what is the advantage of it?
Hi @Audrey27,
In case you have copy of the same image in multiple folders in the DAM, you can simply run query e.g from crx/de. Below is an example of query that will search for all the folders that contains image with specific name. You can easy change criteria from name to other property. The example query will look for all folders in entire DAM (/content/dam) that includes asset with name 48-hours-of-wilderness-1.jpg
SELECT * FROM [nt:folder] AS folder INNER JOIN [dam:Asset] AS asset ON ISCHILDNODE(asset, folder) WHERE ISDESCENDANTNODE(folder, "/content/dam") AND name(asset) = "48-hours-of-wilderness-1.jpg"
However, if by folders associated with asset you mean collections, then you can get list of the collections that include reference to given asset under asset properties. Below is sample screen, it shows list of all references so pages and collections - you can easy recognize collection by its location.
Views
Likes
Replies