• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Nav Tab Editing?

anthony parsons

Member
Showcase
Pick'em
Sportsbook
How do I edit the navtab for showcase, so I can hide it / customise it into my own menu?

I've found the secondary links template, though I'm guessing you're direct injecting the navtab via PHP instead of via a template edit. Is this the case? If so... can it please be changed so that the navtab can be controlled like all other navtabs, via template edits.
 
2 ways. You can disable the tab itself by disabling the listener (navigation_tabs) or hide it via CSS (jakes prefered method). I know of at least 1 person that does this with showcase and that's 8thos, so maybe you can give him a quick inbox and he can tell you what he did. Maybe I can get him to write up a "how to".

As far as how I do it, you guessed correct. This is exactly how Kier and Mike designed & built the navigation tabs system to work with addons. Addons use a listener to listen in on the navigation_tbas event which in turn dynamically creates the TAB (which is not a template) and inserts it into the Navigation system. The sub links are stored in a template that is rendered at runtime by the code event that dynamically creates the tab. All Addons that create their own tab use this same method. Its Core XenForo functionality.

Sounds to me like you simply want to disable the Tab and put a link and its sub links under a different tab. If thats the case, then ask 8thos how he did his, cause that is exactly what he is doing and knows the best way to accomplish it :)
 
Cheers Bob... I got the method down with custom nav... just wanted to know how you were doing it, as some do it the XF way, others do it via a template.

Already rebuilding it now. Thanks heaps for that.
 
  • Like
Reactions: Bob
oh good :)

btw, I'll probably create an option so that you can quickly and easily turn the Nav Tab on and off without having to either disable the listener or doing the CSS trick.

Hows everything coming along with the addon?
 
Back
Top