Reputation: 372
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?
Asset Renditions: We are only getting Static Renditions and original rendition but not Dynamic.
Upvotes: 2
Views: 879
Reputation: 2081
From personal experience, you better create your own class to read the metadata properties to get the URLs you need.
Upvotes: 1
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