Groups

Someone remind me how to increase the number of groups displayed on the group page - I'm suffering from a mental fug and for the life of me cannot rememeber which file to alter...

  • I am also looking to change the number of groups listed on the [community] groups page.

    I would also be very interested to hear about what jededitor mentioned about listing groups alphabetically and other options.

    Most of all I would LOVE if the groups ordered themselves according to any kind of activity inside groups.

  • @jededitor Works for me

    case 'popular':
                $content = elgg_list_entities_from_relationship_count(array(
                    'type' => 'group',
                    'relationship' => 'member',
                    'inverse_relationship' => false,
                    'full_view' => false,
                    'limit' => 20,
                ));
                if (!$content) {
                    $content = elgg_echo('groups:none');
                }
                break;
            case 'discussion':
                $content = elgg_list_entities(array(
                    'type' => 'object',
                    'subtype' => 'groupforumtopic',
                    'order_by' => 'e.last_action desc',
                    'limit' => 40,
                    'full_view' => false,
                ));
                if (!$content) {
                    $content = elgg_echo('discussion:none');
                }
                break;
            case 'newest':
            default:
                $content = elgg_list_entities(array(
                    'type' => 'group',
                    'full_view' => false,
                    'limit' => 20,
                ));

  • Yep works for me as well when I'm not suffering from big typing fingers <blush>