Hide menu item(s) by checking RainLab Session component on referenced CMS page or layout.
Requirements
RainLab.User and RainLab.Pages
The following plugins are required

User
Front-end user management.
User
Front-end user management.

Static Pages
Adds static pages, menus and breadcrumbs features to October CMS.
Static Pages
Adds static pages, menus and breadcrumbs features to October CMS.
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
Found the plugin not useful on 15 May, 2023
Doesn't work on October 3.3.12
-
Ryan Showers author
Replied on 15 May, 2023
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 |