Menus system: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 128: Line 128:
     }
     }
</source>
</source>
= To force usage of your menu manager =
You can force usage of your own menu manager by creating a module.
For this , all you have to do is to declare the 4 following constants into the array $this->const of your module descriptor file (See page [[Development module]]).
<source lang="php">
* 1=>array('MAIN_MENU_STANDARD_FORCED','chaine','cabinetmed_backoffice.php','Force menu handler to this value',1,'current',1),
* 2=>array('MAIN_MENUFRONT_STANDARD_FORCED','chaine','cabinetmed_frontoffice.php','Force menu handler to this value',1,'current',1),
* 3=>array('MAIN_MENU_SMARTPHONE_FORCED','chaine','cabinetmed_backoffice.php','Force menu handler to this value',1,'current',1),
* 4=>array('MAIN_MENUFRONT_SMARTPHONE_FORCED','chaine','cabinetmed_frontoffice.php','Force menu handler to this value',1,'current',1),
</source>
Your menu manager will be used once the module is activated.

Navigation menu