By nancydru on
I have this in my menu:
$items['quotes'] = array(
'title' => 'Quotes',
'access arguments' => array('access content'),
'page callback' => 'quotes_page',
'type' => MENU_NORMAL_ITEM,
);
$items['quotes/%user_uid_optional'] = array(
'title' => 'My quotes',
'page callback' => 'quotes_page',
'page arguments' => array(1),
'access arguments' => array('access content'),
'type' => variable_get('quotes_show_myquotes', true) ? MENU_NORMAL_ITEM : MENU_CALLBACK,
);
In the D5 version of this (structural difference only), the second item shows as a child menu entry. But in D6, it shows as a first level entry - and above the first one.
How can I get it back to being a child menu item?
Comments
Anyone?
NancyDru
Since %user_uid_optional is
Since %user_uid_optional is 'optional', what you've got there is two menu items with the same path - 'quotes' and 'quotes'. I suggest changing the second one to use %user instead.
--
-john
--
-john
Thanks
I had to reset the user item to default values, but it seems to be working now.
Nancy Dru (formerly Nancy W. until I got married to Drupal)
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru