Desarrollo de un módulo: Difference between revisions

Jump to navigation Jump to search
m
Line 316: Line 316:


// 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'=>'MyModule left menu 1',
'titre'=>'MyModule left menu 1',
'mainmenu'=>'xxx',
'mainmenu'=>'xxx',
                         'leftmenu'=>'mymodule',
                         'leftmenu'=>'yyy',
'url'=>'/mymodule/pagelevel1.php',
'url'=>'/mymodule/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