PDA

View Full Version : 4.2.0 NavTab Plugins and Nav Manager


SkyStryder
09-13-2012, 04:53 PM
I have a requirement for NavTabs with dropdown menus and submenus. There is no way the
Navigation Manager can do this that I know of. So I have to work with it somehow. I have
4 navtab plugins and I have managed to get them to be "selected" and "unselected" based on
their respective menu items and they do not become selected when the NavMgr has something
selected. My problem is that when the NavMgr doesn't have something selected, it goes and
lights up the Forum tab anyway. $root settings only work for tabs in the navigation manager
database. Since my tabs by requirement can't be in the database I need another way.

Does anyone have an idea on how to get the NavMgr selected to synchronize with my selected?
Thank you!

Lynne
09-14-2012, 01:46 AM
Read this thread about creating a plugin to make it stay selected - https://vborg.vbsupport.ru/showthread.php?t=283498

SkyStryder
09-14-2012, 02:37 AM
I have indeed read that thread and many others. My plugin tabs are working
fine. The problem seems to be more that the NavMgr will by default set the
selected tab to the forum tab (of the navmgr tabs) if no other navmgr tabs are selected.
3 of the plugin tabs (all pointing to sets of content.php links) use sectionid or nodeid to
decide whether or not to light up. Home, Articles (w/dropdown sub menus), and Help.
The 4th plugin is a file library. I was hoping there was some way to avoid changes to
the set_navigation_tab() function which seems to present a possibility...
Thank you for your reply Lynne.

Lynne
09-14-2012, 11:42 PM
I guess when you said "My problem is that when the NavMgr doesn't have something selected, it goes and lights up the Forum tab anyway." I figured you wanted some way to light up a specific tab. Are you saying that sometimes you want NO tab to be highlighted? I don't think that can be done.

SkyStryder
09-15-2012, 02:28 AM
Because one of my non NM plugin tabs would be highlighted, I would not want the
NavMgr to have any of its tabs highlighted.

--------------- Added 1347732929 at 1347732929 ---------------

YippEE! I was actually able to solve this using Andreas' Navigation Manager Enhancements
Mod located here:
https://vborg.vbsupport.ru/showthread.php?t=283123

By using the HTML option for links, I was able to code the sub menus to work! :) :up:

I am one happy camper!