1) Script Title: AnyLink Drop Down Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.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):
Edited Code: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'><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.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}
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.



Reply With Quote

Bookmarks