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.
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.
Copyright © 2021 Jogjafile Inc.
Create a database table to store the data (Probably 2 columns are all you'll need
fid
anddownload_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.