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

Extra tabs links

Discussion in 'XenForo Questions and Support' started by Matthew2D, Feb 15, 2012.

  1. Matthew2D

    Matthew2D Active Member

    Hello. When you install an addon with a page theres a link in the navbar. What template do the links go into?

    Thanks.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    gordy likes this.
  3. Matthew2D

    Matthew2D Active Member

    That's something WAY different than what I'm asking...for example, when you install XenQuotations, a tab is created call quotations. I want to know what template that tab was put into.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Strictly speaking, addons don't insert their tab code into a template. They use the $extraTabs array to insert their tab information which is then used by the navigation template to build the tab. If you edit that template you will see three $extraTabs sections.

    If you want to change or remove the nav tab for an addon then you need to modify the PHP code in that addon that uses $extraTabs. It would be an event listener for the "navigation_tabs" event.

    edit - you can also use CSS to style or remove a tab (display: none).
     
  5. Matthew2D

    Matthew2D Active Member

    I have a lot of tabs, and I want to make a "More" Tab with a dropdown of pages. How would I do that?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  7. Matthew2D

    Matthew2D Active Member

    Except that I don't want to use the nodes as tabs...
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Then you can edit the navigation template to add your menu.

    You could also create your own listener for the "navigation_tabs" event to manipulate $extraTabs and add your menu that way. But the template edit is probably easier. The only reason to create your own listener is if you need tab selection and other functionality beyond just the dropdown menu.
     
  9. Matthew2D

    Matthew2D Active Member

    Could you do it for me?
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah I can do it. I need a URL and admin login, and the titles / links you want in your navbar. Send me a PM.
     

Share This Page