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

Any hint for changing Tab order?

#1
Hello @ll.
Just created my own new tab linking to a new page (from tutorials here)
works fine.
Created secondary links, works fine.

BUT the new tab I created integrates automatically after the forum and before the members tab.

My question: is there a way to integrate that new tab in a different position?
Example between Home and Forums Tab or between Members and Help Tab.

Or is between Forums and Members Tab the only possible position?

Luc
 

Cool

Active member
#2
that´s a easy one.
just edit - Templates - navigation

move the whole part: <!-- extra tabs -->
before the: <!-- forums --> //or where you want it
part and you are done.
 
#3
thanks for the reply.
I forgot to mention, i am creating an addon, with extra page and extra tab.
I wanted to add an option in settings where user can choose tab position, without having to edit templates.
sort of $template_hook like in vbulletin...

I had thought of doing a sortof $template = str_replace(<!-- forums -->, $newtab, $template);
but i dont know where to fetch the template before it gets rendered.

Luc
 

ArnyVee

Well-known member
#4
Other than doing the template edits and moving code around, is there a different way to change the order of the tabs?
 

Jake Bunce

XenForo moderator
Staff member
#5
Other than doing the template edits and moving code around, is there a different way to change the order of the tabs?
If those tabs belong to addons then you probably need this to change the order:

http://xenforo.com/community/threads/remove-page-title-custom-home-landing-page.24334/#post-297908

If you happen to be using the Nodes As Tabs addon then there are some configurable options in your Admin CP that might be useful here:

http://xenforo.com/community/resources/nodes-as-tabs.9/update?update=142