- Posts: 18
- Thank you received: 1
Sorting/Alphabetizing Member List
- Michael Sheward
- Topic Author
- Offline
- New Member
-
Less
More
9 years 3 weeks ago #78953
by Michael Sheward
Sorting/Alphabetizing Member List was created by Michael Sheward
The default implementation for the member's list is to sort by order of entry. Is there a configuration somewhere that will allow me to sort by last name or other fields?
If this doesn't exist, which component file should I modify to get this behavior and how can I change the sort criteria? I'm well versed in PHP, but I'm still in the process of learning Joomla's MVC component structure and I'm not very familiar with how their database classes work.
If this doesn't exist, which component file should I modify to get this behavior and how can I change the sort criteria? I'm well versed in PHP, but I'm still in the process of learning Joomla's MVC component structure and I'm not very familiar with how their database classes work.
Please Log in or Create an account to join the conversation.
- Michael Sheward
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
9 years 3 weeks ago #78955
by Michael Sheward
Replied by Michael Sheward on topic Sorting/Alphabetizing Member List
Furthermore I came across the following post from and older thread:
joomdonation.com/forum/membership-pro/44...ip-pro.html?start=30
Has anyone achieved this type of sorting behavior in their member's list?
I tried to implement this in my template following the format of other javascript includes, but was unable to get anywhere. Having the ability to sort these fields and have more reliable searching capabilities would be ideal. I've noticed that you can only search for a single word, otherwise the search returns nothing.
joomdonation.com/forum/membership-pro/44...ip-pro.html?start=30
hjames wrote: For those of you who want to make your membership table sortable you can follow this quick guide:
1. Download the attached sortable.js file and upload it to templates/your_template/js
2. Open your templates file which references the "head: of the template (Different frameworks do this differently)3. Find the references to other JS and add a new line as follows:
- Check the template root "index.php
- Check the template root > layouts > blocks
4. Open the file: default.php in the following folder: components/com_osmembership/views/members/tmplCode:$this->API->addJS($this->API->URLtemplate() . '/js/sortable.js');
5. Edit the following line 30:
from:Code:<table class="table table-striped table-bordered table-condensed">
to:6. Upload this new file to the following: your_template/html/com_osmembership/membersCode:<table class="table table-striped table-bordered table-condensed sortable">
Once all of these changes have been made and are in the correct places your entire table will be sortable.
Thanks,
James
Has anyone achieved this type of sorting behavior in their member's list?
I tried to implement this in my template following the format of other javascript includes, but was unable to get anywhere. Having the ability to sort these fields and have more reliable searching capabilities would be ideal. I've noticed that you can only search for a single word, otherwise the search returns nothing.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 3 weeks ago #78964
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Sorting/Alphabetizing Member List
Hi
You don't have to customize the code. Actually, when you create menu item to display members list, there is a parameter in the menu allow you to choose to sort subscribers by what custom field.
Could you please check the menu item again?
Tuan
You don't have to customize the code. Actually, when you create menu item to display members list, there is a parameter in the menu allow you to choose to sort subscribers by what custom field.
Could you please check the menu item again?
Tuan
Please Log in or Create an account to join the conversation.
- Michael Sheward
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
9 years 3 weeks ago #79001
by Michael Sheward
Replied by Michael Sheward on topic Sorting/Alphabetizing Member List
Wow. I missed that one. I've even been in that menu before! Thanks Tuam!
Unfortunately another problem has cropped up. For some reason the ASC/DESC selections aren't working. It always sorts it in reverse alphabetical order (DESC), even if I pick ASC. Both options render the same sort.
Any idea why this wouldn't be working properly?
Unfortunately another problem has cropped up. For some reason the ASC/DESC selections aren't working. It always sorts it in reverse alphabetical order (DESC), even if I pick ASC. Both options render the same sort.
Any idea why this wouldn't be working properly?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 3 weeks ago #79155
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Sorting/Alphabetizing Member List
Hi Michael
What version of the extension you are using? I remember that it was a bug in older version of Membership Pro and it was fixed. So you can download latest version of Membership Pro, upgrade it to your site and check it again
It should work well
Regards,
Tuan
What version of the extension you are using? I remember that it was a bug in older version of Membership Pro and it was fixed. So you can download latest version of Membership Pro, upgrade it to your site and check it again
It should work well
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.