Hi,
How do I display more members on my Custom Index? Currently, the limit is 10.
The code is
echo elgg_view_module('featured', elgg_echo("custom:members"), $vars['members'], $mod_params);
How do I change the number of members to be displayed to 12?
Thanks!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- iconMatrix@SteveAquila

iconMatrix - 0 likes
You must log in to post replies.Look at index.php of mod/custom_index/
This is how I did it
<div class="index_box">
<?php $newest_members = elgg_get_entities_from_metadata(array('metadata_names' => 'icontime', 'types' => 'user', 'limit' => 15));
?>
<h2><?php echo elgg_echo("custom:members"); ?></h2>
<div class="contentWrapper">
<?php
if(isset($newest_members)) {
//display member avatars
foreach($newest_members as $members){
echo "<div align=\"center\" class=\"index_members\">";
echo elgg_view("profile/icon",array('entity' => $members, 'size' => 'small'));
echo "</div>";
}
}
?>
<div class="clearfloat"></div>
</div>
</div>