Get Image Block's Src Path
Permalink$image = $page->getBlocks('News Image');
And it outputs the image ok with this:
$image->display();
How can I get just the file's src path?
All the
getRelativePath();
Thanks.
$image = $page->getBlocks('News Image');
$image->display();
getRelativePath();
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.