How to get all the refrences of the pages where static assets are used i.e path is hardcoded in component | Community
Skip to main content
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

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 7, 2022
joerghoh
Adobe Employee
Adobe 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?