By Uhu on
Hi
Im not sure if this problem could be solved, cause I'm not sure if Drupal is build out for this...
But I've a significant prob with the Menu API.
Heres my Menu-Tree:
xy - NORMAL_ITEM
xy/% - CALLBACK
xy/a - DEFAULT_LOCAL_TASK
xy/b - LOCAL_TASK
xy/c - LOCAL_TASK
xy/d - LOCAL_TASK
All works fine, but I'm not sure where to put the CALLBACK.
The real problem is that all TABS disappear if the CALLBACK is fired !?!?
Am I stupid or is this not possible?
Please Help
Greetings Uhu
Comments
I've never had a menu setup
I've never had a menu setup like yours but I'd think it should work just fine.
Use page arguments to pass the value in the URL to your callback function. Just use the continuing integers if you need to pass more values.
$items['game/%'] = array(
'title' => 'Game',
'page callback' => 'maven_game_node_view',
'page arguments' => array( 1, 2 ),
);
Hi No its not that the
Hi
No its not that the CALLBACKs are not working...
What I mean is that if a CALLBACK is fired somewhere the TABS are hidden.
For example:
xy - NORMAL_ITEM
xy/a - DEFAULT_LOCAL_TASK
xy/b - LOCAL_TASK
xy/b/% - CALLBACK
If I'm visiting xy/b/% the TABs are NOT shown !
Why ?
Greetings
Uhu