Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

[SOLVED] Search for CB Lists

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 1 month ago - 8 years 1 month ago #285699 by chepp
[SOLVED] Search for CB Lists was created by chepp
I have two questions about searching on a CB List page.

First, I have a drop down list where band members can select their instrument (Flute, Trumpet, Alto Saxaphone, etc.). I have the field set to searchable, it shows up "Fields to search" under the list, but I am unable to get the filed to show up as a searchable field for the list. Other drop down fields as well as text fields are working fine. Any ideas on what I'm missing?

Also, the other drop down fields use a drop down for searching. I'd like to use a text filed for the instrument field instead since there are sub-types. For example, someone may want to search for all the alto saxophones, but they might also need to search for all the saxophones, which includes the baritone and tenor sax. The user should be able to search on the word "sax" or "saxophone" and get all the various kinds of saxophone players. Is that possible in a CB list?

Thanks

Joomla! 3.6.2 / CB 2.0.15
Last edit: 8 years 1 month ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #285705 by krileon
Replied by krileon on topic Search for CB Lists
The field needs to be marked searchable and then the userlist needs to be able to display that searchable field. There's a few ways to do that. Either setup your userlist to display all searchable fields, to display searchable fields on that list then add that field as a column on that userlist, or specifically specify what searchable fields should display and select your field.

Next once you've done all that you need to ensure the field can even be accessed by the user viewing the userlist. So if you're viewing while logged out then that field needs to be publicly accessible. Typically this comes down to the tab it's on being set to Registered view access level instead of Public.

A select fieldtype can not use a text fieldtype for its search. It will always be a dropdown selection. If you want a text fieldtype for searching you will need to change the field to a text fieldtype. Probably the easiest usage would be a dropdown multi-select or a multi-checkbox and just be sure to list all the instruments that you want to support on your site.


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.

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 1 month ago #285997 by chepp
Replied by chepp on topic Search for CB Lists
I followed all the steps you pointed out, just I had for the other fields that were working. I discovered the problem is the CB Conditional plug in that only showed that field once the person registering for the site identified themselves as a student in another drop down box. If I set the conditional to "Normal CB Settings" the field shows up as searchable and works fine. Removing the condition isn't an option. Is there any way to overcome that limitation?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #286009 by krileon
Replied by krileon on topic Search for CB Lists
Just ensure under "For..." ensure "Userlists Search" is set to "No". If you want the field to display in the actual list and ignore the condition then also set "Userlists View" to "No".


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: chepp

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

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 1 month ago #286014 by chepp
Replied by chepp on topic Search for CB Lists
That fixed it. Thank you.

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

Moderators: beatnantkrileon
Powered by Kunena Forum