Ho un gancio:Drupal 6: aggiunta di voci di sottomenu su una voce di menu?
function node_field_link_menu()
{
$items['order_food'] = array(
'title' => 'Products',
'page callback' => 'node_field_link_products_page',
'access callback' => TRUE,
'menu_name' => 'primary-links',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
Questo mi dà la mia voce di menu e sono felice con lui. Il problema è, voglio articoli sotto questa voce di menu, in modo da finire con:
- Products
- Product 1
- Product 2
- Product 3
- Product 4
ho letto che è possibile utilizzare "plid", ma il problema è, in questo contesto, non so che cosa il PLID è, perché ho appena creato il genitore. Quindi non posso fare questo:
function node_field_link_menu()
{
$items['order_food/procuct1'] = array(
'title' => 'Product 1',
'page callback' => 'node_field_link_products_page1',
'access callback' => TRUE,
'menu_name' => 'primary-links',
'type' => MENU_NORMAL_ITEM,
'plid' => XXX?,
);
return $items;
}
Così come posso aggiungere un altro elemento di menu sotto una voce di menu che ho creato in Drupal 6?