Page 1 of 1

[solved] {content_image} breaks on default Template

Posted: Fri Apr 03, 2009 7:41 am
by 180michael
When I use {content_image block='image1'} in the default template it seems to break every time. Am I missing something here or did I just find a bug? Is there a fix for this problem? Thank You!

Fatal error: Call to undefined function _smarty_cms_function_content_return() in /homepages/6/d281311174/htdocs/prestelinteriors/plugins/function.content_image.php on line 35

CMSMS: 1.5.3
PHP 5.2.8
MYSQL 5.0.67

Re: {content_image} breaks on default Template

Posted: Fri Apr 03, 2009 11:23 am
by Ted
Just curiously, is the {content_image} in your template BEFORE the regular {content} tag?  We might have stumbled on a bug here.

Thanks!

Re: {content_image} breaks on default Template

Posted: Fri Apr 03, 2009 4:38 pm
by 180michael
AW! No, I didn't place the {content} tag in the template to begin with. It's a static page per design. Is it bad though that {content_image} can't be used without the {content} tag?

It works now as expected.

Re: {content_image} breaks on default Template

Posted: Fri Apr 03, 2009 4:43 pm
by Ted
1.x still has a limitation where {content} must be in the templates.  It's just legacy at this point -- the template stuff needs to be rewritten to handle that better.

Thanks for the good post, though.  Made it easy to track it down.

Re: {content_image} breaks on default Template

Posted: Fri Apr 03, 2009 5:24 pm
by 180michael
No problem. Thank you for your help!