Hi,
to make dashlet, there is 2 ways :
- insert ftl template in your dashlet : template can be good almost you can make this template available for each folder easily and have stats by folder
- create java bean to manage dashlet : this is good if you need to improre performance or do more complex things
Template can do what you want but i think you will have performance problems. To have for instance 10 most downloaded documents you need to retrieve lot of information to do it with standard AuditInfo freemarker component
So i think its better to make a dedicated request in a JavaBean to auditinfo.
Hope this help…