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

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

DRE

Well-known member
#1
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 http://www.The8thLegion.com/games/

As you see, if you click http://www.the8thlegion.com/arcade/tetris.5/play

It keeps the sub navigation menu when you change pages.

But when you click http://the8thlegion.com/xboxlive-leaderboard/games

It is gone.

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

http://the8thlegion.com/xboxlive-leaderboard/games
 

Jake Bunce

XenForo moderator
Staff member
#2

DRE

Well-known member
#3
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:

http://xenforo.com/community/threads/move-menu-items.20654/#post-263851

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:

http://xenforo.com/community/threads/add-navtabs-to-different-route.25761/#post-311629
Thanks! Robbo showed me the route earlier. Blog/Site Link Exchange Thread