Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM : Find content fragments where an asset is being referenced

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

@Arun_Patidar @Jörg_Hoh @vanegi 

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
3 Replies
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
aem-enthusiast
Level 2
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.