Dropdown Submenu Links
Lots of forums I see have a extremely cluttered submenu's this simple tutorial will show you how to clean it up with IPB dropdown menu.
First off place the below code at the end of the textbox.
<script type="text/javascript">
//<![CDATA[
menu_build_menu(
"subnav",
new Array(
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
) );
//]]>
</script>
Where ever you want the drop down menu link to appear copy and paste hte below code.
<span id="subnav"><div class='ipb-top-right-link'><a href="#subnav">Links Name</a></div></span>
To finish up Save Template Bit
The most important thing with this tutorial is that it matches each bit of code.
- span id="subnav"
- href="#subnav"
- menu_build_menu("subnav",
Company News