Skip to main content
New Participant
September 7, 2022
Solved

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

  • September 7, 2022
  • 2 replies
  • 577 views
No text available
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

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/commons/util/AssetReferenceSearch.html

 

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/src/main/java/com/adobe/cq/tutorials/assets/impl/ReferencedAssetsServlet.java

2 replies

joerghoh
Employee
September 9, 2022

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?

BrianKasingli
BrianKasingliAccepted solution
New Participant
September 7, 2022