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!

Filtering User lists

  • Gooru
  • Gooru
  • OFFLINE
  • Posts: 36
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #213852 by Gooru
Filtering User lists was created by Gooru
Hi...

I'm creating many lists and they are based on a few criteria.

I create a list for a category, and base that on the users city.

So I have a field called city. I create the list and sort it by business name and filter it by city.

I create the rule EQUAL TO "city name" and it works great.

But what if I want to create several cities associated with a wider common area that includes several cities? As soon as I add another rule with EQUAL TO to another city name, all the results disappear.

So how do I add a range filter or selective filter to my lists?

GooRu Source
Web Development and Management

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #213924 by krileon
Replied by krileon on topic Re: Filtering User lists
Basic filters are always "AND" filters. You'll need to use an Advanced filter so you can use "OR" operators. Example filter as follows.

( ( ue.`cb_city` = 'CITY' ) OR ( ue.`cb_city` = 'CITY' ) )


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum