I’m using an Image-Element and try to load the image source dynamically. To receive it I use a function and pass an url-parameter:
{echo:elm_get_page_header_image_url({url_parameter:elm_formid})}
The function is allowed. This dynamic tags works in an Basic Text Element but NOT in an Image Element or in Style->Background of a section.
I tested this locally and to me, the image was visible in the frontend, but in the editor, the url_parameter part of the image src was missing.
I will open a bug report about this, but before I do this, can you let me know, if the image works for you in the frontend? If not, can you share the code you use in your custom function?
Hi Matej,
I don’t see the image either in the frontend or in the backend. The function’s code is irrelevant. For testing purposes, I returned directly a URL and also an image object.
Best regards
Daniel
Hi,
I didn’t try it with a full URL in the URL parameter. I returned directly an url in the function what should be the same. Can’t test it anymore in this project, I implemented an workaround solution…