how to get detail of all digital assets used in single webpage in AEM

2k views Asked by At

how to get details of all digital assets used in single webpage in AEM(Adobe experience manager). is there any out of box utility.

Thanks in advance

1

There are 1 answers

1
Sharath Madappa On

If you need to search in a java class there is class called AssetReferenceSearch . It's constructor takes the node (content node of the page ) to search under , path where the assets are stored (can be /content/dam ) and Resource Resolver.

Reference : http://wemcode.wemblog.com/get_asset_reference_in_page

In case you want it as json over HTTP , there is a servlet already that returns the references ( /libs/wcm/core/content/reference ).

http://localhost:4502/libs/wcm/core/content/reference.json?path=%2Fcontent%2Fgeometrixx%2Fen&charset=UTF-8&_dc=1434561074057 returns asset references in the geometrixx home page.