hiding menus based on plan

9 years 3 months ago #257242 by startup
hiding menus based on plan was created by startup
Hello,

I'm using CB Subs GPL 4.0.0-rc.1 with CB 2.0.4 on Joomla 3.3.6.

I have two plans (standard and pro) which I'd like to use to show one of two different menu items to users having either one of these (mutually exclusive) plans.

I know in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Integrations -> Content -> By menu I can select a menu item to which I'd like to regulate the access based on this 'Standard Plan'.

When a user (without this 'Standard plan') clicks on the menu item from the front-end, s/he gets the message:

"Warning - Access to this menu item not allowed...".


What I'd like to do though, is for the menu item that is protected by this Standard plan to not even show to this user to begin with, unless he has that plan. Basically, the same behaviour as for modules when protecting these in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Extensions -> By Module.


The other way around, I'd like for users with a 'Professional Plan' to see the other menu item that users with Standard Plan can't see.

Right now, users of both plans see both items, but only one is accessible.

Is it possible with CB Subs to protect Menu items such that they don't even show to users not having the plan that is protecting them? If so how?

Thank you very much!

Please Log in to join the conversation.

9 years 3 months ago #258626 by krileon
Replied by krileon on topic hiding menus based on plan
CBSubs can't hide menu items. Only protect their endpoint. It can hide modules however so you maybe able to use multiple menu modules to accomplish what you're wanting.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.186 seconds

Facebook Twitter LinkedIn