• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to add a custom Tab

Custom tabs OMG
#1
Ever want your user upgrades to have their own tab? well look no futher.

You will need to go
Admin Cp --> Appearance --> style --> Your Skin-->Templates

Once your in templates go to "navigation"
Search for this once your in navigation



Code:
<!-- extra tabs: end -->
        <xen:if is="{$extraTabs.end}">
        <xen:foreach loop="$extraTabs.end" key="$extraTabId" value="$extraTab">
            <xen:if is="{$extraTab.linksTemplate}">
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">



Right above it add this code


Code:
<li class="navTab PopupClosed"><a href="{xen:link account/upgrades}" class="navLink">Premium</a></li>
and boom your own tab for user upgrades
 

jt2011

Active member
#3
how do you get your tab to be selected when you are on the page of the tab?

I tried this but it doesn't work
HTML:
<li class="navTab  {xen:if $articles.selected, 'selected', 'PopupClosed'}"><a href="{xen:link articles}" class="navLink">Articles</a></li>
When I click the tab it takes me to the articles page but the tab is not selected
 
R

ragtek

Guest
#4
how do you get your tab to be selected when you are on the page of the tab?

I tried this but it doesn't work
HTML:
<li class="navTab  {xen:if $articles.selected, 'selected', 'PopupClosed'}"><a href="{xen:link articles}" class="navLink">Articles</a></li>
When I click the tab it takes me to the articles page but the tab is not selected
a xenforo node page? ttp://xenforo.com/community/resources/nodes-as-tabs.9/

if it's a something else, you need a own route and a plugin for this
http://xenforo.com/community/threads/add-own-navigation-tabs.5265/