• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Menu Manager: attach the image of a page to a menu item
PostPosted: Mon Jul 23, 2012 2:02 pm 
Offline
New Member

Joined: Wed Mar 14, 2012 9:39 pm
Posts: 9
Hello,

I use: CMS Made Simple 1.10.3.

I would like to attach/add the images of pages to the corresponding menu items.

1.
I added the following line to a Menu Manager template:
<img src="uploads/images/{$content_obj->GetPropertyValue 'image'}" />
wich results in showing the image of the active menu item to all menu items. I kind of can imagine why.

2.
When I add this line:
<img src="uploads/images/{$node->menutext}.png" />
it does function.

Question:
Is there a way to modify the first option, so that it functions as desired?

Thanks in advance,
Murk


Top
 Profile  
 
 Post subject: Re: Menu Manager: attach the image of a page to a menu item
PostPosted: Mon Jul 23, 2012 6:05 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11866
Location: Arizona
The Help in menu manager has this...

$node->image -- This field contains the value of the image page property (if non empty), unless the loadprops-parameter is set to NOT load the properties.

This image comes from the Options tab when editing a page, I use it for this menu...

http://dequenesh.org/ the little images of people, house, envelope, etc...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Menu Manager: attach the image of a page to a menu item
PostPosted: Mon Jul 23, 2012 7:37 pm 
Offline
New Member

Joined: Wed Mar 14, 2012 9:39 pm
Posts: 9
Thanks a lot Dr.CSS for your quick response,

I did try before with $node->image, but the Loadprops-parameter was the problem. It was set to 0.

You solved my problem.

Best regards, Murk


Top
 Profile  
 
 Post subject: Re: Menu Manager: attach the image of a page to a menu item
PostPosted: Fri Aug 10, 2012 10:31 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
I am having this same issue, but I can't find where to change the "Loadprops-parameter" - could you tell me where this setting is?
All my Menu Manager templates are read-only.


Top
 Profile  
 
 Post subject: Re: Menu Manager: attach the image of a page to a menu item
PostPosted: Fri Aug 10, 2012 10:52 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
fearmydesign wrote:
I am having this same issue, but I can't find where to change the "Loadprops-parameter" - could you tell me where this setting is?
All my Menu Manager templates are read-only.


Nevermind... I got this... my question now is how to insert the $node->image into my cssmenu template? I have already moved it to the database so I can edit right on CMSMS, but on which line or where should I add this so the images show?

Thank you


Top
 Profile  
 
 Post subject: Re: Menu Manager: attach the image of a page to a menu item
PostPosted: Sat Aug 11, 2012 9:21 am 
Offline
New Member

Joined: Wed Mar 14, 2012 9:39 pm
Posts: 9
Hello Fearmydesign,

You should add the line in a Menu Manager template, somewhere at the bottom. Compare this with a ‘standard’ template:

{if ($node->type != 'sectionheader' and $node->type != 'separator') or $node->parent == true or $node->current == true }
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}">

<span class="imageThumb"><img src="{$node->image}" alt="{$node->menutext}" /></span>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting