Reputation: 1726
I want to get download count for simple file which i have added in page by 'a href' tag.
File is pdf file.
I have already tried download-count module. but no result.
File is added by a href tag in one of the template.
Upvotes: 0
Views: 955
Reputation: 27053
Create a database table to store the data (Probably 2 columns are all you'll need fid
and download_count
).
Make sure that your files is saved as private files
.
Create a custom module and implement hook_file_download(), inside this hook implementation write the code to add/update the file download count.
Upvotes: 1