Skip to Content Skip to Menu

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

[SOLVED] Filter User list with Starting Letter

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #234185 by Seagul
Hello,

my customer wants to filter his user list with the beginning letters of the lastname.
So there should be linked letters A, B, C, D, E, F, G,... at the top of the user list. When I click on a letter i.e. "F" I want to view a user list with lastname starting with "F".

What is the best way to do it?
Where in my template would I need to start?

Thanks,
Seagul
Last edit: 11 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234209 by krileon
Replied by krileon on topic Filter User list with Starting Letter
There is no such feature to do this. You'd need to make a userlist for every letter of the alphabet that has a filter to filter out anyone who doesn't have a last name beginning with the letter (you'll need to use an Advanced filter for this). Once done you'll need to add HTML to every lists description that links to each of the individual letter userlists. It's probably easier to just have Last Name searchable though.


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

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

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 1 month ago #234225 by Seagul
Replied by Seagul on topic Filter User list with Starting Letter
Thanks for your detailed answer. I was looking for something like this.
I guess I will setup the lists in list-manager with
filter: 'lastname' LIKE 'A%'
and then somehow do the html-links in the template.

Thanks
Seagul

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234235 by krileon
Replied by krileon on topic Filter User list with Starting Letter
Using multiple lists is what another user did and seams to work well. Also instead of adding the HTML to a template they used a Custom HTML module (module type built into Joomla) then just added it to a module position above the userlist. You could also add it to each userlist using description, but then every list a-z would need the HTML in its description.


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

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

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 1 month ago #234263 by Seagul
Replied by Seagul on topic Filter User list with Starting Letter
The module position is a really good idea! I will solve it like this.
Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum