Question as to order of Groups on group page

Strumelia
Strumelia
@strumelia
11 years ago
3,603 posts
A little question I have- when we go to the "Groups" main page- there doesn't seem to be any rhyme or reason for the order in which the Groups are listed. I have about 60 groups/6 pages of them. Is there a way for us to have the groups listed in some sort of logical order- like most Active, or Most Members, or most Recent Activity? Just wondering.

===============================
(Paul said): "In the Ningja skin groups are ordered newest to oldest by default.
If you want to change that, edit the group module index.tpl in the ACP
Find the line
{jrCore_list module="jrGroup" order_by="_item_id numerical_desc" pagebreak=10 page=$_post.p pager=true}
and change the order_by option
order_by="group_title asc" for alphabetical listing
order_by="group_comment_count numerical_desc" for number of comments (highest first) etc "
=================================

@ Paul (or other JR team member)- can you tell me what the "etc etc" code snippets would be for the order_by options of:
Most Active, or Most Members, or most Recent Activity (meaning a recent forum post or a wall comment for example)
-are those sorting options possible? (instead of sorting by alphabetical for instance)? Thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 07/09/16 09:21:02AM
paul
@paul
11 years ago
4,335 posts
Hi Strumelia
For 'Most Active' I assume that would be by number of comments, so -
order_by="group_comment_count numerical_desc"

Members are saved as a json array and there is currently no group_member_count option. I'll add it in for the next release. When it is there the option will be -
order_by="group_member_count numerical_desc"

For Most Recent Activity you need to query the Comment datastore -
{jrCore_list module="jrComment" search="comment_module = jrGroup" order_by="_created numerical_desc" . . . }
Note that if doing this, only the groups' title and their urls would be returned so you could display that and link to the actual group ok.

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Strumelia
Strumelia
@strumelia
11 years ago
3,603 posts
Ah, thank you! I will save this info and I'll probably wind up listing them by the most members as that has always made more sense for me and my members. That'll be great!

When you say it will be in the 'next release'- do you mean the next Core update, or do you mean the next update of a groups module, or the ningja skin- which new release would I be looking for to suggest to me that I could then use the member number sorting option? Merci beaucoup!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
there is a group_member_count in the datastore
i thought there might be a way of ordering based on jraction but couldnt figure it out

and in your example wouldnt that list the commentws within the groups?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,149 posts
soaringeagle:
there is a group_member_count in the datastore
i thought there might be a way of ordering based on jraction but couldnt figure it out

Right now the group_member_count key is a "derived" key and can't be ordered on, but we've got a ticket open to fix that so you'll be able to use it in ordering, etc.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
Strumelia:
Ah, thank you! I will save this info and I'll probably wind up listing them by the most members as that has always made more sense for me and my members. That'll be great!

When you say it will be in the 'next release'- do you mean the next Core update, or do you mean the next update of a groups module, or the ningja skin- which new release would I be looking for to suggest to me that I could then use the member number sorting option? Merci beaucoup!

groups

but fromk what i see in the datastore it sghould already work


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,149 posts
Strumelia:
When you say it will be in the 'next release'- do you mean the next Core update, or do you mean the next update of a groups module

The group module - not the core.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Quote: but fromk what i see in the datastore it sghould already work
I wonder if that is from the original jrGroup module, and it got left out in the module re-vamp that Brian did?
Either way, we'll get it put back.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,149 posts
paul:
Quote: but fromk what i see in the datastore it sghould already work
I wonder if that is from the original jrGroup module, and it got left out in the module re-vamp that Brian did?
Either way, we'll get it put back.

Could be but I don't remember it being setup that way, but it should be an easy fix.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
yea must be as i see a member count in groups list and see group member count inthe data store but oddly enough the sorts not working
and looks like ive got q good week to go to upload my data and re-import


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM