Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Replacing [name] field for certain user group: trigger?

  • cberry1971
  • cberry1971
  • OFFLINE
  • Posts: 125
  • Thanks: 7
  • Karma: 0
12 years 1 month ago - 12 years 1 month ago #215391 by cberry1971
Link for example here: 80.241.217.183/index.php?option=com_comprofiler&task=registers&Itemid=167

Dropdown at top declares registrants as (cb_membertype):

ATHLETE: User Group A (with first and last name)
EVENT: User Group B (with cb_eventname field and first and last names for account contact)

Upon completion of registration, we have the display field working fine to show based on user type as:

[cb:if cb_membertype="Athlete"][name][/cb:if][cb:if cb_membertype="Event"][cb_eventname][/cb:if]

However when using search to find a EVENT, the search results display the [name] field rather than the [cb_eventname] field.. this is quite confusing to users as they may not even know the name of the person who created the event.

How might I fix this? Do i need a trigger to keep first / last as contact info but change [name] to the event name in case where cb_membertype = event

Alternatively I have tried using [name] as the required registration field... but this (without regex) is less clean as I still want to capture first/last for event creators.
Last edit: 12 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #215476 by krileon
When searching what? If it's a userlist then just make your cb_eventname field searchable and place it on your userlist.


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.

  • cberry1971
  • cberry1971
  • OFFLINE
  • Posts: 125
  • Thanks: 7
  • Karma: 0
12 years 1 month ago #215498 by cberry1971
Yes.. but if i create a event called Buddha Box Throwdown [cb_eventname]

the profile shows as screenshot 1.. which is great.

However if a user searches under the word "Buddha" the results (screenshot 2) display the event creator's [name] "Chris Berry"

People will not know the event by Chris Berry. They are looking for a search result called Buddha Box Throwdown.
Attachments:

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

  • cberry1971
  • cberry1971
  • OFFLINE
  • Posts: 125
  • Thanks: 7
  • Karma: 0
12 years 1 month ago #215500 by cberry1971
SOLVED: in the Community Builder Search plugin insert this into title

[cb_membertype]: [cb:if cb_membertype="Athlete"][name][/cb:if][cb:if cb_membertype="Event"][cb_eventname][/cb:if]

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

Moderators: beatnantkrileon
Powered by Kunena Forum