How to programmatically set image path in AEM6.4 Dynamic media component
Hi All,
I have component lets say xyz and I'm including sly-resource "Dynamic Media" component into page like mentioned below,
in XYZ .html:-
<sly data-sly-resource="${ 'dynamic-media' @ resourceType='dam/components/scene7/dynamicmedia'}"/>
It will add the node under "/content/dam/customwebsite/xyz" as "/content/dam/custom/xyz/dynamic-media" only when we drag and drop an image into it.(into dynamic media component")
I would like to set a image programmatically
Assume before including the dynamic media component I have a image path like
"xyz.imagePath" (xyz is a java sling model for my xyz component)
is it possible somehow pass this image path programmatically into dynamic media component? Can some one help me?
Thanks
Seeni