Développement module: Difference between revisions

Jump to navigation Jump to search
Line 351: Line 351:


// Example to declare a Left Menu entry:
// Example to declare a Left 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
$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 of parent menu
'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'=>'xxx',
'mainmenu'=>'xxx',
                         'leftmenu'=>'monmodule',
                         'leftmenu'=>'yyy',
'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.

Navigation menu