Is there a way to find all the pages in which a particular image is used?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can find the references of an image by selecting image, clicking on properties and check under references tab
Refer https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/w... for retrieving it from backend
Yes we do have.
From the asset console, you just select the image and select the references from the left rail.
if you need the reference in query, you can easily write one.
You can get the reference in code as well.
Hope this hleps.
Umesh Thakur
It can be seen in the left rail as mentioned by @Umesh_Thakur .
Other than that, you can hit the below query to get a list.
select * from nt:base where jcr:path like '{path_to_search}' and contains(*, '{image_path_to_search}')
Hi,
You can find the references of an image by selecting image, clicking on properties and check under references tab
Refer https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/w... for retrieving it from backend
Option 1: Select the specific asset and click on References tab, then you will be seeing all the pages in which that image is used.
Option 2: If you want to do it programmatically then you can refer http://wemcode.wemblog.com/get_asset_reference_in_page [Other way around section]
Hope these will help.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies