How Do You Add A Sub-Navigation Menu To A Page?


Well-known member
Hi. I just added a modification and it added itself as a navtab at the top. To save room since I already have many navtab's, I put this modification's menu underneath an existing menu. I did so by adding the modification page link inside the hook of another navtab menu's secondaryContent blockLinksList .

I also added the other navigation link that was underneath the original modification's menu navtab, inside the hook of the other menu's blocklinkslist.

The problem with adding the other links is that the sub navigation menu goes away once I click on one of the links I added. How do I make the sub navigation menu appear again on the page links I added?

For example

As you see, if you click

It keeps the sub navigation menu when you change pages.

But when you click

It is gone.

Same thing for a page, except in this case, it gives you the forum sub navigation menu

Jake Bunce

XenForo moderator
Staff member


Well-known member
If you completely remove the parent tab then the secondary links will be fubar when you visit a page that is associated with that tab.

I recommend this:

Anything more requires custom code, such as modifying the route handler for the addon in question to change the major section to a different tab. Here is a code example of this:
Thanks! Robbo showed me the route earlier. Blog/Site Link Exchange Thread