Multiple Member Pages for different Groups
Permalink
I'm quoting for a site and one of the requirements is to have a listing page for members of different groups.
While I know the Show Member Profiles will allow me to show all, is there a way to set this up so that it shows them by Group?
For example:
Site Admins
-- list of all admins
Group A
-- list of all members in group A
Group B
-- list of all members in group B
Group C
-- list of all members in group C
Hope someone can help me out here.
While I know the Show Member Profiles will allow me to show all, is there a way to set this up so that it shows them by Group?
For example:
Site Admins
-- list of all admins
Group A
-- list of all members in group A
Group B
-- list of all members in group B
Group C
-- list of all members in group C
Hope someone can help me out here.
It's pretty straightforward to filter the member list by group, as the UserList class has a filterByGroup() method. You could override...
/concrete/controllers/members.php
...by copying it to...
/controllers/members.php
...and then modifying the code such that the filterByGroup() method is invoked before the getPage() method.
If you're looking for a simpler, more powerful, and more flexible approach, however, you might want to check out my add-on...
http://www.concrete5.org/marketplace/addons/enhanced-user-list/...
What you're describing is one of the main reasons I developed the add-on. I create solutions to address issues I encounter "in the field". Among other things, it has more powerful group selection capabilities and is AJAX driven, so you can have multiple lists of different groups per page. The forthcoming major update (which might require version 5.5 of C5) will also offer filtering by user attributes, user searching through the front end, and powerful scripting options (if you're familiar with JavaScript).
-Steve