[SOLVED] Page content Images & thumbnail

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
citedms
New Member
New Member
Posts: 2
Joined: Thu Dec 11, 2008 10:35 am

[SOLVED] Page content Images & thumbnail

Post 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)
Attachments
cms_problem1.jpg
Last edited by citedms on Thu Dec 11, 2008 3:39 pm, edited 1 time in total.
Zoorlat

Re: Page content Images & thumbnail

Post 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)
citedms
New Member
New Member
Posts: 2
Joined: Thu Dec 11, 2008 10:35 am

Re: Page content Images & thumbnail

Post by citedms »

Thank you, much appreciated :D
Post Reply

Return to “CMSMS Core”