Active
Project:
Web File Manager
Version:
6.x-2.10-rc5
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Aug 2009 at 19:01 UTC
Updated:
18 Sep 2009 at 14:44 UTC
Since webfm is not integrated into views I have a request.
I want to make a block to display the top 5 downloaded files. So basically it should display the node titles where the files are attached to sorted on the dl_count descending.
I am not much of a programmer and am struggling with this. Is there anyone who has some code for me (to put into a block) or how to make that block working.
Thanks
Comments
Comment #1
robmilne commentedNot a difficult task for a custom module and a bit of sql however it does require programming skill. I believe there are ways of contracting help within the Drupal community - I'm too busy to offer my services.
Comment #2
erald commentedWell I made a block in the mean time by simply use the option to put some php code in the block. Know enough PHP to make this.. :)
This will display the node titles of the top 3 downloaded files
This code I used
Comment #3
Philo72 commentedModified eralds code a little for my purposes. Included for anyone who wants it.
All i have done is add the path and the size from the webfm_file table then explode the path to get the file name and change the link to allow a user webfm_send the file. I also added a bit of info on download count and size.
Not a neat coder but. if there is any way to do it better i'm all ears. :)