Expand my Community achievements bar.

SOLVED

How to get all the refrences of the pages where static assets are used i.e path is hardcoded in component

Avatar

Level 1
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

From Java backend, you can utilise this tool, import com.day.cq.dam.commons.util.AssetReferenceSearch;

 

documentation - https://developer.adobe.com/experience-manager/reference-materials/6-4/javadoc/com/day/cq/dam/common...

 

An example of usage of this class can be found here -> https://github.com/Adobe-Marketing-Cloud/aem-samples/blob/master/tutorial-referenced-assets/bundle/s...

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

From Java backend, you can utilise this tool, import com.day.cq.dam.commons.util.AssetReferenceSearch;

 

documentation - https://developer.adobe.com/experience-manager/reference-materials/6-4/javadoc/com/day/cq/dam/common...

 

An example of usage of this class can be found here -> https://github.com/Adobe-Marketing-Cloud/aem-samples/blob/master/tutorial-referenced-assets/bundle/s...

Avatar

Employee Advisor

What do you mean by "hardcoded in the component"? Do you mean a case where an author as entered /selected the path to an asset?