I'm using hook menu here for the first time as token menu doesn't seem to be doing what I need.
In the end, I need a menu that will use a wildcard and load a view based on that wildcard. I have the views working, now working on the menu.
I have a "directory" structure like so:
- committee/committee-name/charter
- committee/committee-name/roster
- etc...
So I am using hook menu like so:
$items['committee'] = array(
'title' => 'Committee Page',
'page callback' => 'committeemenu_mymenu_page_callback',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
$items['committee/%/roster'] = array(
'title' => 'Roster',
'page callback' => 'committeemenu_mymenu_page_callback',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
$items['committee/%/charter'] = array(
'title' => 'Charter',
'page callback' => 'committeemenu_mymenu_page_callback',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
Committee shows on my menu, but Roster and Charter don't. I am not sure why not? If I give a wildcard, committee/%, to committee for example, I get no menu item. So is this a wildcard issue? should I be able to use a wildcard here? I am going to pull in a view based on wildcard and charter/roster content types.