1. 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?

Discussion in 'XenForo Development Discussions' started by Luciano, Oct 14, 2010.

  1. Luciano

    Luciano Member

    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?

  2. Cool

    Cool Active Member

    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. Luciano

    Luciano Member

    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.

  4. ArnyVee

    ArnyVee Well-Known Member

    Other than doing the template edits and moving code around, is there a different way to change the order of the tabs?
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    If those tabs belong to addons then you probably need this to change the order:


    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:

    ArnyVee likes this.

Share This Page