Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Tags for group names

  • PaceOnline
  • PaceOnline
  • OFFLINE
  • Posts: 104
  • Thanks: 2
  • Karma: 0
1 year 2 months ago #335393 by PaceOnline
Tags for group names was created by PaceOnline
I would like to set up a tag for each group of a specific category that a member is in so for example in the groupjive category universities I am a member of the group called Yale I would like to show the tag Yale in the tag field universities. How can I set that up with CB Auto Actions.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
1 year 2 months ago #335399 by krileon
Replied by krileon on topic Tags for group names
You shouldn't need an auto action for that. You can use a Query field to pull that information down dynamically and automatically. The below should work for example.

Query:
Code:
SELECT g.`name` FROM `#__groupjive_users` AS u INNER JOIN `#__groupjive_groups` AS g ON g.`id` = u.`group` WHERE u.`user_id` = '[user_id]'
Output: Multiple Rows
Columns: Single Column
Delimiter: Span

Now you can use CSS to style the span elements surrounding each group name to look like tags or whatever you like. Will review adding a Tag delimiter option for a future release though so it's even easier.

forge.joomlapolis.com/issues/9253


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
1 year 2 months ago #335402 by krileon
Replied by krileon on topic Tags for group names
New CB Query Field build release is now available. You can now set "Delimiter" to "Tag" for it to display the results the same as a tag field would.


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.
The following user(s) said Thank You: PaceOnline

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

Moderators: beatnantkrileon
Powered by Kunena Forum