Amit Chauhan
Amit Chauhan

Reputation: 372

Get all dynamic media scene7 URL from Asset object in AEM

Why is the asset.listRenditions() function in AEM only returning Static renditions and not Dynamic renditions, even though I can confirm the presence of Dynamic renditions for the asset in the AEM Asset manager?

Java Code Snap: enter image description here

Asset Renditions: We are only getting Static Renditions and original rendition but not Dynamic.

enter image description here

Upvotes: 2

Views: 879

Answers (2)

ronnyfm
ronnyfm

Reputation: 2081

From personal experience, you better create your own class to read the metadata properties to get the URLs you need.

Upvotes: 1

JeffWaters
JeffWaters

Reputation: 35

Looking at the JCR structure I can see that static renditions are saved in subnodes of the asset, whereas Dynamic Media renditions are stored in the CDN and the respective resource IDs end up in the metadata node as properties ("dam:scene7...") My 2 cents are that the Asset.listRenditions is legacy code that has not been updated yet to handle other renditions than the statically and locally rendered ones.

Upvotes: 1

Related Questions