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.
where did you come up with this any blog post or docs codes ?
Hello @27pixel,
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?
Thanks.
Matej
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
Hmm,
so if you call it like this {echo:return_data({url_parameter:data})}
And the function looks like this
function return_data($data)
{
return $data;
}
Does it not work in your case, on the frontend, if you have full link in the URL?
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…