The z4m_homemenu displays a dynamic 2 levels menu on the home view according to the rights granted to the logged in user.
This module is published under the version 3 of GPL General Public Licence.
This module contains the view z4m_homemenu
to declare within the
menu.php
of the
application.
If user authentication is disabled, all the menu items are displayed by the
z4m_homemenu
view.
This view can also be included within an existing home view.
- ZnetDK 4 Mobile version 2.0 or higher,
- PHP version 7.4 or higher.
- Add a new subdirectory named
z4m_homemenu
within the./engine/modules/
subdirectory of your ZnetDK 4 Mobile starter App, - Copy module's code in the new
./engine/modules/z4m_homemenu/
subdirectory, or from your IDE, pull the code from this module's GitHub repository, - Edit the App's
menu.php
located in the./applications/default/app/
subfolder and add a new menu item definition for the viewz4m_homemenu
as first menu item. For example:
\MenuManager::addMenuItem(NULL, 'z4m_homemenu', 'Home', 'fa-home');
See CHANGELOG.md file.
Your contribution to the ZnetDK 4 Mobile project is welcome. Please refer to the CONTRIBUTING.md file.