Skip to Content Skip to Menu

how to get joomla usergroup name with CB substitutions?

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
5 years 7 months ago #311090 by saman2
hi
i have a field with name "about teacher" and cutsom Html type.
i want show this field only for my teachers. each of teacher is in the different joomla user group that has teacher in usergroup name. for example teacher A is in joomla usergroup with name "course A teachers" and teacher B is in the "Art course teachers". i use CB Conditional and set as you can see in the picture attached.
i need substitutions to return joomlausergroupName to set does contain teacher.
if there is nothing substitution ti return usergroup name can you advise me?
(i can not use access level because my teacher group automaticaly created and teacher automatically add to that with Joomdle extension)
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48441
  • Thanks: 8275
  • Karma: 1443
5 years 7 months ago #311109 by krileon
There's no substitution for grabbing every users usergroups by name. Your probably need to use a CB Code Field and the necessary Joomla API in with PHP to grab all those then condition against your code field.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum