Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Query to get count of pages on which an image is used

Avatar

Level 2

Hi

I have a requirement where i need to run a query to get the count and page details on which a particular DAM image is used.

I have tried below querybuilder query but dont get all results

path=/content/test

1_property=jcr:primaryType

1_property.value=nt:unstructured

2_property=image

2_property.value=/content/dam/test/assets/home.jpg

p.limit=-1

p.properties=jcr:path

Any help will be really appreciated.

Thanks

Hina

1 Accepted Solution

Avatar

Correct answer by
Level 10
6 Replies

Avatar

Correct answer by
Level 10

See this thread for a related discussion - fetch image using JCR or Query Builder

Avatar

Community Advisor

The query you used looks only in property called image.. "References" in DAM does exactly what you are looking to do http://localhost:4502/bin/wcm/references?_dc=1525242342217&_charset_=utf-8&path=%2Fcontent%2Fdam%2Fg... and gets all references.. Does this help?

Avatar

Level 5

Hey @viveksachdeva  Could please add more info on that URL, How do I get a report of all the images being used across website.