By kjl on
I am trying to add administrator view and edit tabs to the CVS version of the project module.
I've been through the new menu docs and have looked at other modules that implement LOCAL tabs, but I can't get them to appear.
I bet it's real easy, too.
Comments
More info?
There's not a lot for me to go on, here. A few possibilities:
- Have you implemented hook_menu() to return a list of menu items?
- Does the page at which you want the tabs to appear have a menu item defined?
- Have you defined the tabs using type = MENU_LOCAL_TASK?
- Have you defined a default tab using type = MENU_DEFAULT_LOCAL_TASK?
- Does the "access" attribute of these items return TRUE for the user who's trying to see them?
Please give specifics of how http://drupal.org/doxygen/drupal/group__menu.html is not clear. I'd like to improve it as necessary.
"- Does the page at which you
"- Does the page at which you want the tabs to appear have a menu item defined?"
I'm not sure what you mean by that.
hook_menu is already in the CVS version of project, but no local tabs are defined in the updated menu.
I tried using type = MENU_LOCAL_TASK, but not MENU_DEFAULT_LOCAL_TASK.
the access attribute should have returned true but I didn;t actually check, as that's probably not the problem.
the example.module doesn't ha
the example.module doesn't have any examples of tabbed menus. There aren't enough examples overall in the example module.
The doxygen documentation is not very useful if you're not a programmer. It can't be a substitute for real tutorials.
In what way is this wrong?
I'm having problems with creating new tabs also. I've read the docs and tried different stuff but can't get the tabs to appear. Could someone tell me if this code is wrong and in what way?
upload_icons is defined and I believe it sticks to the description in doxygen... thanks!
cache
Try emptying the cache-table in the db, maybe not the best approach for a production server but seems to work while developing. There is probably a better way but thats what I did to get my tabs to work.
nope, that's not it...
but it solved another issue I had, thanks! ;)
Same problem here
I have the same problem. Local tabs do not appear in my module. Anyone has advices besides the ones already said here?
I fixed this
In my case the fix was to correct "path" strings (I was testing and got the menu structure incorrectly) and clear the cache.