Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem adding custom nav-tab
#3
mvlcek Wrote:Regarding the class to highlight the tab: this seems to be a bug.
I was struggling with this to, but I've figured it out. For the highlighting to work, set page type in register_plugin() to $thisfile. This works because the following is used to determine the active tab (in createNavTab): (since 3.1 beta)
Code:
if ($plugin_info[$plugin_id]['page_type'] == $tabname) $current = true;

Also added this to the wiki.
Reply


Messages In This Thread
Problem adding custom nav-tab - by ePirat - 2012-01-23, 16:57:09
Problem adding custom nav-tab - by mvlcek - 2012-01-23, 18:05:23
Problem adding custom nav-tab - by leenm - 2012-01-24, 17:33:40
Problem adding custom nav-tab - by shawn_a - 2012-03-07, 01:53:30
Problem adding custom nav-tab - by mvlcek - 2012-03-07, 02:30:33



Users browsing this thread: 1 Guest(s)