Dear ksar,
Got an idea how to display font awesome icons in the menu from dolibarr 13.0.2. Unlike 12.0.4, it is 2000 line in eldy.lib.php does the magic:
print ($menu_array[$i][‘prefix’] ? $menu_array[$i][‘prefix’] : ‘’).$menu_array[$i][‘titre’];
if the $menu_array[$i][‘prefix’] = lt i class="fa fa-database fa-fw paddingright"gt lt /i gt then the fontawesome icon is shown in Dolibarr 13.0.2
So, in order to set the value in the menu array, I need your help please…
Kindly refer the below taken from the link:
// 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 of parent menu
‘type’=>‘left’, // This is a Left menu entry
‘titre’=>‘MyModule left menu 1’,
‘mainmenu’=>‘xxx’,
‘leftmenu’=>‘yyy’,
‘url’=>‘/mymodule/pagelevel1.php’,
‘langs’=>‘mylangfile’, // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
‘position’=>100,
‘enabled’=>‘1’, // Define condition to show or hide menu entry. Use ‘$conf->mymodule->enabled’ if entry must be visible if module is enabled.
‘perms’=>‘1’, // Use ‘perms’=>‘$user->rights->mymodule->level1->level2’ if you want your menu with a permission rules
‘target’=>‘’,
‘user’=>2); // 0=Menu for internal users,1=external users, 2=both
$r++;
Can you kindly please help me to understand what parameter to be added in the above to add a font awesome icon (like lt;i gt; “fa fa-database fa-fw paddingright” gt lt /i gt)
or
Please refer to link:
where caos30 has replied for main menu. Will that fit my case for side menu as well…?
enu is left menu, module is visualquery and the unicode of icon is f1c0.
Please guide.
Thanks and Regards,
yesbee