Group Widget Content

I a trying to work out how to change the number of items displayed in the widgets for group profile page.

At the moment each widget (ie. discussion, pages, files, blog etc..) will show the 6 latest items.

Any help appreciated..

B

  • You can find all group page widgets by searching for "group_module.php" files in your installation. One example would be mod/blog/views/default/blog/group_module.php. In those files, when editing with a text editor, you'll see a section like

    $options = array(
    'type' => 'object',
    'subtype' => 'blog',
    'container_guid' => elgg_get_page_owner_guid(),
    'metadata_name_value_pairs' => array('name' => 'status', 'value' => 'published'),
    'limit' => 6,
    'full_view' => false,
    'pagination' => false,
    );

    When you change the

    'limit' => 6

    part to

    'limit' => 10

    , you'll have the 10 latest items on your group page. A much better approach is not to edit those core files directly, but to create your own plugin where you override those specific views. Please refer to http://docs.elgg.org/wiki/Engine/Views on how to override views.