Hi, I'm working on a plugin for Birthdays and wanted to include pagination features.
I made a view of the users objects that also includes a display of their birthday under their icon.
Currently I am using a foreach and elgg_view to display members.
Is there any way I can use elgg_view_entity_list to pass in the matching users (filtered by birthmonth) and have it display them using my custom view?
------
function list_matching($matching_users)
{
if(!$matching_users) return null;
foreach($matching_users as $user)
{
$entity = $user['user'];
$fieldname = $user['fieldname'];
$date = $user['date'];
//echo "{$entity} | {$fieldname} | {$date}";
$html .= elgg_view("birthdays/listing", array('entity' => $entity, 'fieldname' => $fieldname, 'date' => $date));
}
return $html;
}
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.
- DEEPAN@deepan
DEEPAN - 0 likes
You must log in to post replies.how did you get your birth date, from profile informations or getting input from user?