2
0
forked from Wavyzz/dolibarr

Update example to add left menu entries

This commit is contained in:
Laurent Destailleur
2008-05-02 14:36:39 +00:00
parent b3daffc953
commit 76d3d48ee7
2 changed files with 28 additions and 3 deletions

View File

@@ -117,12 +117,36 @@ class modMyModule extends DolibarrModules
// Main menu entries
$this->menus = array(); // List of menus to add
$r=1;
$r=0;
// Example:
// $this->menu[$r]=array('fk_menu'=>0,'type'=>'top','titre'=>'Agenda','mainmenu'=>'agenda','leftmenu'=>'agenda','url'=>'/comm/action/index.php','langs'=>'commercial','position'=>100,'perms'=>'$user->rights->agenda->myactions->read','target'=>'','user'=>0);
// This is to declare Top Menu entry:
// $this->menu[$r]=array( 'fk_menu'=>0, // Put 0 if this is a top menu
// 'type'=>'top',
// 'titre'=>'Title top menu',
// 'mainmenu'=>'mymodule',
// 'leftmenu'=>'1', // 1 if you also want to add left menu entries in this top menu
// 'url'=>'/comm/action/index.php',
// 'langs'=>'mylangfile',
// 'position'=>100,
// 'perms'=>'$user->rights->mymodule->level1->level2',
// 'target'=>'',
// 'user'=>0);
// $r++;
//
// This is to declare a Left Menu entry:
// $this->menu[$r]=array( 'fk_menu'=>'r=1', // Use r=value of r for the top menu entry
// 'type'=>'top',
// 'titre'=>'Title left menu',
// 'mainmenu'=>'mymodule',
// 'url'=>'/comm/action/index2.php',
// 'langs'=>'mylangfile',
// 'position'=>100,
// 'perms'=>'$user->rights->mymodule->level1->level2',
// 'target'=>'',
// 'user'=>0);
// $r++;
}
/**