Problem with menumanager {$node->thumbnail} [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
heffer86
Forum Members
Forum Members
Posts: 10
Joined: Sat Nov 22, 2008 3:23 am

Problem with menumanager {$node->thumbnail} [solved]

Post by heffer86 »

I am trying to make a menu with a thumbnail icon.  I have set the thumbnail in my page settings, but I can't pull the thumbnail out.  See code below.

Code: Select all

  {assign var="firstsub" value="1"}
  {assign var="depth" value="-2"}
  {assign var="depthcheck" value="0"}
  {assign var="listopened" value="0"}
  {if $count > 0}
  {foreach from=$nodelist item=node}
  {if $node->index == 0}
  {elseif $node->haschildren == true }
  {elseif $node->haschildren == false }
  {/if}
  {if $depthcheck == 1 && $node->depth != $node->prevdepth}
  <ul>
  {assign var="depth" value=$node->depth}
  {assign var="depthcheck" value="0"}
  {assign var="listopened" value="1"}
  {/if}
  {if $node->depth == $depth && $firstsub == 1}
  <li><img src="uploads/images/{$node->thumbnail}"/>
  <a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a><br />
  {$node->titleattribute}</li>
  {elseif $listopened == 1}
  {assign var="firstsub" value="0"}
  {/if}
  {if $node->current == true &&  $node->haschildren == true}
  {assign var="depthcheck" value="1"}
  {/if}
  {/foreach}
  {if $listopened == 1}
  </ul>
  {/if}
  {/if}
Last edited by heffer86 on Fri Aug 14, 2009 1:50 am, edited 1 time in total.
inyerface
Forum Members
Forum Members
Posts: 191
Joined: Mon Nov 26, 2007 4:46 pm

Re: Problem with menumanager {$node->thumbnail}

Post by inyerface »

Do you want to display the same icon for all menu items?
heffer86
Forum Members
Forum Members
Posts: 10
Joined: Sat Nov 22, 2008 3:23 am

Re: Problem with menumanager {$node->thumbnail}

Post by heffer86 »

inyerface wrote: Do you want to display the same icon for all menu items?
No.  each page has it's own icon.
heffer86
Forum Members
Forum Members
Posts: 10
Joined: Sat Nov 22, 2008 3:23 am

Re: Problem with menumanager {$node->thumbnail}

Post by heffer86 »

inyerface wrote: Do you want to display the same icon for all menu items?
I just tried {$node->image} and the image still doesn't show up.  If I call it though the page template like:

Code: Select all

<img src="uploads/images/{$content_obj->GetPropertyValue('image')}"/>
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Problem with menumanager {$node->thumbnail}

Post by Dr.CSS »

heffer86
Forum Members
Forum Members
Posts: 10
Joined: Sat Nov 22, 2008 3:23 am

Re: Problem with menumanager {$node->thumbnail}

Post by heffer86 »

Thanks for that page, but I am looking to add it to menu manager

update: I am looking for a picture menu like that link.
Last edited by heffer86 on Wed Aug 12, 2009 12:02 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Problem with menumanager {$node->thumbnail}

Post by Dr.CSS »

You have to make a new menu template with the image call where you want it...
Post Reply

Return to “Modules/Add-Ons”