PDA

View Full Version : How To Add A New Tab In The Navbar



s0ct0j0c
21-04-2011, 02:22 PM
This will create a simple tab link in the navbar. No popup or submenu. Here is a picture of what it looks like (in this example the user wanted a link for Account Upgrades):

http://xenforomods.info/attachments/19-1-png.6256/?embedded=1

Edit this template:

Admin CP -> Appearance -> Templates -> navigation

Add this code (insert an appropriate link and tab label):
<!-- mytab --> <li class="navTab PopupClosed"><a href="LINK HERE" class="navLink">TAB LABEL HERE</a></li>
...as shown below:


<li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li> </ul> </div> </li> </xen:if> <!-- mytab --> <li class="navTab PopupClosed"><a href="LINK HERE" class="navLink">TAB LABEL HERE</a></li> <!-- extra tabs --> <xen:if is="{$extraTabs}"> <xen:foreach loop="$extraTabs" key="$extraTabId" value="$extraTab"> <xen:if is="{$extraTab.linksTemplate}">
While you can 'hard code' the link and tab label, ideally you should use
xen:link and xenhttp://xenforomods.info/styles/default/xenforo/smilies/tongue.pnghrase. For example, here is the proper code for the
Account Upgrades picture above:
<!-- mytab --> <li class="navTab PopupClosed"><a href="{xen:link account/upgrades}" class="navLink">{xen:phrase account_upgrades}</a></li>