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

nancydru’s picture

jcfiala’s picture

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

nancydru’s picture