Hi,
I have created a new node from the Create "content page" (say node/20)... and then i need to affect my node to the sub menu item below.
How i can do please ?
Because the subitem link I need is to access my node like this :
http://127.0.0.1/mysite/?q=node/20
but not as described by my menu :
http://127.0.0.1/mysite/?q=menu1/subitem1
I think i could call the "test" callback, loading and theming my node... but maybe is there a simpler way ? (override path or link...)
------------
function list_projects_menu() {
$items['menu1'] = array(
'title' => t('my infos'),
'page callback' => 'show_page',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
$items['menu1/subitem1'] = array(
'title' => t('my infos'),
'page callback' => 'test', // node/20 ?
'access callback' => TRUE,
);
}
Cédric