AEM : Find content fragments where an asset is being referenced | Community
Skip to main content
Level 2
November 8, 2020
Solved

AEM : Find content fragments where an asset is being referenced

  • November 8, 2020
  • 1 reply
  • 2012 views

Hi,

I have a requirement where I need to find the content fragment in which an asset is being referenced, say an image.

Is there an out of the box API available like ReferenceSearch which can give me the Content Fragment in which an image is being referenced? ReferenceSearch will provide me the page in which the asset is being referenced. I want similar implementation with content fragments.

Thanks.

@arunpatidar @joerghoh @vanegi 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
November 8, 2020
Thanks for the reply. I had a look at the sample example. Will this work for content fragments as well? I need to get the content fragment where the asset is added as a content reference.