Page 1 of 1

node->image not working [solved]

Posted: Thu Jul 09, 2009 8:47 am
by simplesimon
I've installed 1.6 on Gentoo, Apache 2, PHP5. Has anyone else notice this does not work?
node->image
in a menu template
{$content_obj->GetPropertyValue('image')}
OTTH does work. What do you all think? Is it a bug? Am I retarted? lol...

reference:
http://forum.cmsmadesimple.org/index.ph ... #msg135906
http://wiki.cmsmadesimple.org/index.php ... dd_Content


{$gCms->config['image_uploads_path']}
does not work anymore. Rather:
{$gCms->config.image_uploads_url}

reference:
http://forum.cmsmadesimple.org/index.php?topic=34126.0

(note: just figured out how to edit a post...  ;D)

If this is a bug, where shall I fix/patch it?

Cheers!

Re: node->image not working

Posted: Thu Jul 09, 2009 8:58 am
by RonnyK
Could you try with calling {menu} with the parameter loadprops=1 as well... SO something like {menu.... loadprops=1}.

For performance reason the properties of a page where not loaded by default in 1.6, so you have to call them in menu-call specifically....

In 1.6.1, the default will be on again, making it possible for users when they dont need the properties to exclude them using loadprops=0, and then gain some performance...

Ronny

Re: node->image not working in 1.6 (SOLVED)

Posted: Thu Jul 09, 2009 9:28 am
by simplesimon
Yes sir. Indeed. With the "loadprops=1" argument in my menu tag in my template, it works:

{menu loadprops=1 template="submenu"}

Thank you very much for your reply. It's much appreciated.

BTW, CMSMS is looking better than ever. Thank you!

Re: node->image not working [solved]

Posted: Fri Apr 09, 2010 11:49 am
by nicmare
seems that loadprops does not work anymore since 1.7?!
cant access values of extra1-3 and image/thumbnail :(

Re: node->image not working [solved]

Posted: Fri Apr 09, 2010 5:29 pm
by Dr.CSS
nicmare

Did you call these properties in your menu template?...

Re: node->image not working [solved]

Posted: Fri Apr 09, 2010 5:32 pm
by nicmare
yep

Re: node->image not working [solved]

Posted: Wed May 19, 2010 6:48 pm
by appleyard
I'm having the same issue. {$node->image} is not working in my Menu Manager, though another menu on the same site that uses {$node->thumbnail} works fine. Adding the "loadprops" boolean didn't help. I'm using "{$node->alias}.jpg" as a stopgap measure for now, but it would be nice to be able to use the image itself.