Page 1 of 1

[SOLVED] Page content Images & thumbnail

Posted: Thu Dec 11, 2008 11:00 am
by citedms
Hi guys, I'm having a little problem with the latest version of CMS Made Simple 1.5.1 "San Juan".  I have read the documentation but it hasn't been included in the latest version.

I can post content from the admin > page > edit page > content, then using the {content} tag in the templates as usual.
In v1.5.1 there is pull down boxes on the admin > page > edit page, called Image & Thumbnail (see attached).

I have uploaded the images via the Image Manager, I can see the uploaded images in the Image/Thumbnail pulldown, but the problem is displaying this images in the templates.  What do I use for the tag?  I have tried using (even though the pulldown has a value in it):
---------------
{image} [in source]

{images} - string(118) "Smarty error: [in template:21 line 125]: syntax error: unrecognized tag 'images' (Smarty_Compiler.class.php, line 590)"

{thumbnail} - string(121) "Smarty error: [in template:21 line 125]: syntax error: unrecognized tag 'thumbnail' (Smarty_Compiler.class.php, line 590)"
---------------

Any help greatly appreciated, thanks guys.



Running:
PHP Version 4.3.9
mysql 4.1.22
Apache/2.0.52 (Red Hat)

Re: Page content Images & thumbnail

Posted: Thu Dec 11, 2008 2:44 pm
by Zoorlat
MenuManager can use them directly as $node->image and $node->thumbnail  (you'll have to prepend the path to that)
i.e:  config['image_uploads_path']}{$node->thumbnail}"/>

In your page content try:  {$content_obj->GetPropertyValue('image')}  or {$content_obj->GetPropertyValue('thumbnail')}
(http://forum.cmsmadesimple.org/index.php/topic,28347.msg135906.html#msg135906)

Re: Page content Images & thumbnail

Posted: Thu Dec 11, 2008 3:39 pm
by citedms
Thank you, much appreciated :D