Page 1 of 1

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

Posted: Tue Aug 11, 2009 4:08 am
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}

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

Posted: Tue Aug 11, 2009 4:12 am
by inyerface
Do you want to display the same icon for all menu items?

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

Posted: Tue Aug 11, 2009 4:29 am
by heffer86
inyerface wrote: Do you want to display the same icon for all menu items?
No.  each page has it's own icon.

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

Posted: Tue Aug 11, 2009 9:46 pm
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')}"/>

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

Posted: Tue Aug 11, 2009 11:16 pm
by Dr.CSS

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

Posted: Tue Aug 11, 2009 11:57 pm
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.

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

Posted: Wed Aug 12, 2009 9:17 pm
by Dr.CSS
You have to make a new menu template with the image call where you want it...