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

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
willbradley

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

Post 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
gozlingo
New Member
New Member
Posts: 2
Joined: Mon Mar 09, 2009 5:13 pm

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

Post 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
gozlingo
New Member
New Member
Posts: 2
Joined: Mon Mar 09, 2009 5:13 pm

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

Post by gozlingo »

Bump - can anybody help me with this??   ???
alby

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

Post by alby »

If anyone read the help, perhaps he reads:
(optional) urlonly - output only the url to the image, ....
Alby
Post Reply

Return to “Developers Discussion”