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

AEM : Find content fragments where an asset is being referenced

Avatar

Level 2

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 @Jörg_Hoh @vanegi 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 2
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.