Results 1 to 2 of 2

Thread: AnyLink Drop Down Menu - Smarty Help!

  1. #1
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow AnyLink Drop Down Menu - Smarty Help!

    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):
    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}
    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' 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.
    Last edited by shadyy510; 05-08-2008 at 08:59 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •