node->image not working [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
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

node->image not working [solved]

Post 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!
Last edited by simplesimon on Wed Jul 15, 2009 7:31 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: node->image not working

Post 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
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

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

Post 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!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: node->image not working [solved]

Post by nicmare »

seems that loadprops does not work anymore since 1.7?!
cant access values of extra1-3 and image/thumbnail :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: node->image not working [solved]

Post by Dr.CSS »

nicmare

Did you call these properties in your menu template?...
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: node->image not working [solved]

Post by nicmare »

yep
appleyard
Forum Members
Forum Members
Posts: 27
Joined: Wed Dec 30, 2009 2:54 pm

Re: node->image not working [solved]

Post 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.
Post Reply

Return to “Developers Discussion”