Line 327:
Line 327:
'titre'=>'MonModule top menu',
'titre'=>'MonModule top menu',
'mainmenu'=>'monmodule',
'mainmenu'=>'monmodule',
−
'leftmenu'=>'1', // Use 1 if you also want to add left menu entries using this descriptor. Use 0 if left menu entries are defined in a file pre.inc.php (old school).
+
'leftmenu'=>'monmodule',
'url'=>'/monmodule/pagetop.php',
'url'=>'/monmodule/pagetop.php',
'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
Line 338:
Line 338:
// Example to declare a Left Menu entry:
// Example to declare a Left Menu entry:
−
$this->menu[$r]=array( 'fk_menu'=>'r=0', // Use r=value where r is index key used for the parent menu entry (higher parent must be a top menu entry)
+
$this->menu[$r]=array( 'fk_menu'=>'fk_mainmenu=xxx', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
'type'=>'left', // This is a Left menu entry
'type'=>'left', // This is a Left menu entry
'titre'=>'MonModule left menu 1',
'titre'=>'MonModule left menu 1',
−
'mainmenu'=>'monmodule',
+
'mainmenu'=>'xxx',
+
'leftmenu'=>'monmodule',
'url'=>'/monmodule/pagelevel1.php',
'url'=>'/monmodule/pagelevel1.php',
'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.