PDA

View Full Version : AnyLink Drop Down Menu - Smarty Help!



shadyy510
05-08-2008, 08:38 PM
1) Script Title: AnyLink Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I am trying to use AnyLink script in my smarty code on header.tpl

I want a link "More" and then have all my dropdrop plugin links to display there...
Check out the code below:

Original Code (without changing anything):

{* SHOW ANY PLUGIN MENU ITEMS *}



{section name=menu_loop loop=$global_plugin_menu}



{if $global_plugin_menu[menu_loop] != ''}



<td class='menu_item'>



<a href='{$global_plugin_menu[menu_loop].0}' class='menu_item'><img src='./images/icons/{$global_plugin_menu[menu_loop].1}' border='0' class='icon'>{$global_plugin_menu[menu_loop].2}</a>



</td>



{/if}



{/section}

Edited Code:

{* SHOW ANY PLUGIN MENU ITEMS *}



{section name=menu_loop loop=$global_plugin_menu}



{if $global_plugin_menu[menu_loop] != ''}



<td class='menu_item'>



<a href='{$global_plugin_menu[menu_loop].0}' class='menu_item' onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()"><img src='./images/icons/{$global_plugin_menu[menu_loop].1}' border='0' class='icon'>{$global_plugin_menu[menu_loop].2}</a>



</td>



{/if}



{/section}

With the edited code above, my dropdown shows up fine. But instead of showing "More" and then the links. All the links show up as a individual link and have the same 4 drop-down links as entered by default in the script.

I been trying to get this working for a while and couldn't figure out a way to achieve this. Don't have much experience in smarty. I would appreciate your help. Thanks in advance.

ddadmin
05-09-2008, 09:31 AM
Hmm it'd be a lot easier just to see the final output on your page and see what the problem with that is. Please post a link to the page on your site that contains the problematic script so we can check it out.