2011-09-08, 05:28:18
ccagle8 Wrote:pardon my ignorance, but is nav-tab useless without it?
You could link the navigation tab to a php file in your plugins/your-plugin folder, but
- you would need about the same code (include common.php, header/footer templates, cookie check, etc.)
- you might get problems, if common.php or templates depend on being called from the admin folder?
- you must make sure to ALLOW this file in .htaccess
- it only works with sitewide cookies
- it's not nice, if the URL suddenly is /plugins/your-plugin/... instead of /admin/...
There are some other problems with side menus and nav tabs:
- Only one side menu item can be generated using createSideMenu
- createNavTab is rather useless as it won't highlight the tab
- a plugin can't (easily) have side menu items on multiple tabs (minor problem in my opinion)
Instead of loadtab.php some small changes will make tabs and side menus (better) usable - see next post.