Page 1 of 1

[SOLVED] Use thumbnails in menu

Posted: Wed May 15, 2013 5:19 pm
by Lieke
Hello,

Is it possible to show thumbnails in a menu?
There is a possibility to choose a thumbnail in the page (in the option tab). I want to show this thumbnail as a tooltip when I click on the menutext.

This is the menu:

Code: Select all

{if $count > 0}
<ul id="menu2">
	{foreach from=$nodelist item=node}
	{if $node->depth > $node->prevdepth}
	{repeat string="<ul>" times=$node->depth-$node->prevdepth}
	{elseif $node->depth < $node->prevdepth}
	{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
	</li>
	{elseif $node->index > 0}</li>
	{/if}
	
	{if $node->current == true}
	<li class="currentpage fx"><a href="{$node->url}">{$node->menutext}</a>
	
	{elseif $node->parent == true}
	<li class="activeparent fx"><a href="{$node->url}">{$node->menutext}</a>
	
	{elseif $node->type == 'sectionheader'}
	<li class="sectionheader fx">{$node->menutext}
	
	{elseif $node->type == 'separator'}
	<li class="separator fx" style="list-style-type: none;"> <hr />
	
	{else}
	<li class="fx"><a href="{$node->url}" rel="{$node->thumbnail}">{$node->menutext}</a>
	
	{/if}
	
	{/foreach}
	{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}


But then I'm lost ???

Please, is there anyone here who can help?

Thanks

Re: Use thumbnails in menu

Posted: Wed May 15, 2013 5:28 pm
by Dr.CSS
Are you using a JS tooltip script or were you hoping it would just pop up on hover? most organic tooltips, text you see on hover, come from the a link title=...

Re: Use thumbnails in menu

Posted: Mon May 20, 2013 3:56 pm
by Lieke
Sorry I've forgot some details :-[
I use tiptip.
But it's working now (the problem were different jquery's)

Thanks