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
$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!

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.