Beta 3 - getting URL from image parameter

Testing out the awesome flexibility and capability of components, ran across this issue:

I have set up two image parameters for the component, which I want to use to set the background image of an accordion header, one for when the accordion is closed and one for when it is open. My current way of achieving this is to use the dynamic content parameter in the Custom CSS of the component, but this is returning the image ID and not the source url.

Is there already, or could there be a way of specifying the return format of the image parameter?

Hi @arthurodb,

Good point here! Sorry about that, there isn’t a way at the moment to adjust the return value. We’ll keep this in mind. I don’t think it will be possible until we revisit some of how Dynamic Content works later on. Meanwhile, the image parameter type would be best used to populate image controls of existing elements that will resolve the ID.