Skip to Content Skip to Menu

[SOLVED] Tab Permissions ACL Hiding and Showing

12 years 5 months ago - 12 years 4 months ago #201056 by marriage_minded_man
[SOLVED] Tab Permissions ACL Hiding and Showing was created by marriage_minded_man
I have 2 groups on my site.

I create 2 tabs. The first tab has a text field witha url in it. The second tab has a delimiter field that is based on said URL.


I want the first group to be able to input the URL on the first tab, and able to see the delimiter field on the second tab. This is fine.

I want the second group to only see the second tab (the one with the delimiter field) on the front end only.

So what I do is make the first tab (that has the URL), accessible through ACL to the first group only. This hides it from the second group. This is good. But the second tab shows up for both groups, both on the front end and the back end (I want it to show for the first group, front and back. but for the secong group, front only, because it serves no purpose to show for the second group on their backend while they are editing their profile, because it has nothing in it and shows nothing).

How can I do this?
Last edit: 12 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 5 months ago #201073 by krileon
Replied by krileon on topic Re: Tab Permissions ACL Hiding and Showing
You can try using IF substitutions in your delimiter field to ensure the field will return a blank value then set within CB > Configuration > User Profile for it to hide empty tabs and fields. Example as follows.

[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]

See tutorials within my signature for further substitution usage information.


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 or Create an account to join the conversation.

12 years 5 months ago #201114 by marriage_minded_man
Replied by marriage_minded_man on topic Re: Tab Permissions ACL Hiding and Showing
This hides it only on the front end. Which is what I have done already. If the url field is not filled in, the tab doesnt show on the front end for that user. However it doesnt hide tabs in the back end. I want to hide a tab in the backend for one group and show it in the front end. Tabs dont hide in the backend if they are empty. They just sit there, regardless of whether they have something or not. In this case this tab has nothing because the delimited field in it doesnt apply to that user group. I just want that group to see the other groups tab, but not see it in their own profiles backend. I hope im making sense.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 5 months ago #201150 by krileon
Replied by krileon on topic Re: Tab Permissions ACL Hiding and Showing
You can try using CB Conditional to conditionally show/hide that tab based off other field values, but aside from that there's really nothing available to provide that except CBSubs using plans. You can also disable the profile edit of an entire tab for everyone using CB Privacy (edit the tab in CB > Tab Management after install) if the tab is just there to show delimiter fields that'd also work.


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 or Create an account to join the conversation.

12 years 5 months ago #201198 by marriage_minded_man
Replied by marriage_minded_man on topic Re: Tab Permissions ACL Hiding and Showing
Disabling the editing worked great. Now I have a tab that is not editable by either group and is viewable only on the front end. Its a delimiter field which is based on a different field on a different tab. Perfect. Thanks.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum