Page 1 of 1

Re: edit the content_image plugin to remove img tag...

Posted: Fri Mar 06, 2009 12:09 am
by willbradley
Try using

Code: Select all

{$content_obj->GetPropertyValue('image')} 
instead of

Code: Select all

{content_image block='MyImage' dir='images'}
You might need to do some funky Smarty stuff in order to properly use the value returned by $content_obj but it's a starting point at least.

For more see:
http://wiki.cmsmadesimple.org/index.php ... /Templates

Re: edit the content_image plugin to remove img tag...[solved]

Posted: Mon Mar 09, 2009 5:15 pm
by gozlingo
Hi,

I have the same problem... Unfortunately though I need three images on the page, so still need to use the content_image.
Is there anyway to do this?

I'm using the images with a javascript slideshow library, so just need to echo the image url's and not the whole img tag.

Thanks,
Oli

Re: edit the content_image plugin to remove img tag...[solved]

Posted: Fri Mar 20, 2009 12:28 pm
by gozlingo
Bump - can anybody help me with this??   ???

Re: edit the content_image plugin to remove img tag...[solved]

Posted: Fri Mar 20, 2009 12:38 pm
by alby
If anyone read the help, perhaps he reads:
(optional) urlonly - output only the url to the image, ....
Alby