Menu Item Session Check
Hide menu item(s) by checking RainLab Session component on referenced CMS layout or page
Menu Item Session Check
Hide menu item(s) by checking RainLab Session component on referenced CMS layout or page
Hide menu item(s) by checking RainLab Session component on referenced CMS page or layout.
Requirements
Installation via Command Line
php artisan plugin:install Sixgweb.MenuItemSessionCheck
Instructions
Layout Method (recommended)
- Add the Session component to a CMS layout and set desired permissions
- Create a CMS page or static page that uses the layout created in step 1
- Create a menu item linking to the page created in step 2
- Repeat step 1 if additional permission types are required
Tip: Moving your layout HTML to a partial will ease maintenance and improve reusability
CMS Page Method
- Add the Session component to a CMS page and set permissions
- Create a menu item linking to the CMS page
This method does not work for Static pages
-
Kal Hoang
Doesn't work on October 3.3.12
-
Ryan Showers author
Please use the product support or github issues to get help. I'm guessing you have a custom component partial for the static menu plugin that doesn't check if the menu item.viewBag.isHidden is true - https://github.com/rainlab/pages-plugin/blob/master/components/staticmenu/items.htm
-
| 1.0.2 |
Fix compatibility with 1.x, 2.x and 3.x Sep 17, 2022 |
|---|---|
| 1.0.1 |
First version of Menu Item Session Check Oct 07, 2019 |