Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
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?