Query to get count of pages on which an image is used | Community
Skip to main content
Level 2
May 1, 2018 6:11 PM UTC
Solved

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 1, 2018 6:58 PM UTC

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

6 replies

Hina29Author
Level 2
May 3, 2018 1:51 PM UTC

Thank you

Translate
Hina29Author
Level 2
May 3, 2018 1:50 PM UTC

Thank you its very helpful !

Translate
viveksachdeva
New Participant
May 2, 2018 6:31 AM UTC

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%2Fgeometrixx-outdoors%2… and gets all references.. Does this help?

Translate
Level 4
Jan 30, 2023 6:15 AM UTC

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

Translate
viveksachdeva
New Participant
Jan 31, 2023 1:53 AM UTC

Here is an article which talks about same requirement. Could possibly give this a shot. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/find-unused-assets-in-aem/m-p/174281

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 1, 2018 6:58 PM UTC

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

Translate