Is there a function to create a list of most viewed entities of a special subtype?
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
- tobi@telltarget

tobi - 0 likes
You must log in to post replies.Create an incrementing annotation on the entity for each view and then fetch entities based on these annotations.
Ok, no standards there.
What about somthing like that:
$count=intval($entity->viewcount);
$entity->viewcount = (1 + $count);
or would an annotation be better?
Never have done something with annotation till now.