View count of file in document library
-
24-05-2021 - |
题
I'm trying to use a Web content Display to show how many times a file in document library has been viewed
Thanks in advance.
解决方案
Here I am providing high level points, as detail would be little long :
- Create a structure and template, in template for your web content
- In template, get the Document Library service and access the file using file id (you can either give the file id hard coded or take that from user using structure texbox elemnt
- Once you get the DLFileEntry object, you can get the download count easily
- Display that with fancy CSS!
Let me know if you need anything in more detail.
不隶属于 StackOverflow