Getting Value for Image URL out of Image Block
Permalink
Hi,
Given the presence of an editable area ($myArea) containing image blocks on a page, I'd like to extract the image src from the first image block and display it elsewhere on the page - not in an editable block, I'd just like the URL string.
I've tried
But I've failed at every attempt to get the url from the $image.
Can anyone help me?
Thank you!
Given the presence of an editable area ($myArea) containing image blocks on a page, I'd like to extract the image src from the first image block and display it elsewhere on the page - not in an editable block, I'd just like the URL string.
I've tried
$x = $myArea->getAreaBlocksArray($c); $image = $x[0]->getInstance();
But I've failed at every attempt to get the url from the $image.
Can anyone help me?
Thank you!