How do mods add tabs to main navigation?

Well-known member

I have several mods that have added tabs to the main navigation and I'd like to move them into their own area. Adding them where I want them isn't a problem, the problem is, removing them from the primary navigation. They don't contain any options within them as to whether or not to add themselves to the nav.

So, my question is, is there a common way that these are added? I know in vB it was using a specific hook in a plugin and if you disabled that, it'd go away. Basically, I'm looking for how to do that with xF, thanks!

Well-known member

Basically, this did disable the primary nav links, but it also disabled the secondary menus that need to be there.

As an example, I'm trying to disable the primary nav tab entry for the Blogs mod I have. It has sub navigation that displays when you click the tab. Normally. If I disable the listener for the primary navtab, it also disables the secondary links, even when you're on the page for the Blogs.

So, any suggestions on how I would go about ONLY disabling the primary tab? Is that even possible? In looking at the listener, it seems that sub navigation is built off of the primary navtab. Which would seem then it'd impossible to display only the sub navigation.

XenForo moderator

Sorry, I was busy doing eleventeen other things to respond.
Yes, it's only possible in debug mode to see that information.
Editing the callback execution order will change the position relative to other tabs.

And no, you can't disable the primary tab but keep the secondary links.

Well-known member

No worries Brogan, was just typing things out as I discovered them. =)

Thanks for the info, knowing I can't do it by simply disabling the code listeners for it, helps. I'll see about adding them directly to the template as you mentioned. No idea how, but... well I'll give it a shot, thanks!

XenForo moderator

Well-known member

No worries Brogan, was just typing things out as I discovered them. =)

Thanks for the info, knowing I can't do it by simply disabling the code listeners for it, helps. I'll see about adding them directly to the template as you mentioned. No idea how, but... well I'll give it a shot, thanks!

XenForo moderator

Basically, this did disable the primary nav links, but it also disabled the secondary menus that need to be there.

As an example, I'm trying to disable the primary nav tab entry for the Blogs mod I have. It has sub navigation that displays when you click the tab. Normally. If I disable the listener for the primary navtab, it also disables the secondary links, even when you're on the page for the Blogs.

So, any suggestions on how I would go about ONLY disabling the primary tab? Is that even possible? In looking at the listener, it seems that sub navigation is built off of the primary navtab. Which would seem then it'd impossible to display only the sub navigation.