Output src of image not entire tag
Permalink
Hi
I am using the following code.
This outputs the image tag. How do I get it to output the src of the image instead?
Probably incredibly simple, but I'm quite new to C5 development and PHP.
Thanks
Luke
I am using the following code.
<?php $im = Loader::helper('image'); $image= $c->getCollectionAttributeValue('BackgroundImage'); if (is_object($image)) {$im->output($image);}?>
This outputs the image tag. How do I get it to output the src of the image instead?
Probably incredibly simple, but I'm quite new to C5 development and PHP.
Thanks
Luke
I think what you want is...
I don't think you need the image helper in this case.
-Steve