Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...having a repository download count without clicks being visible to other usershaving a repository download count without clicks being visible to other users
Previous
 
Next
New Post
7/12/2010 11:07 AM
 
Is it possible to count the number of downloads a repository document has been viewed/clicked
and NOT display the download count to other users?

(I believe the download count can be removed by deleting the token.)

Also,
I have set the site log history to 0 days (to improve performance) so  not sure if this needs to be changed to allow the site log to accrue data?

thanks,
mark.
 
New Post
7/12/2010 12:51 PM
 
Further to the above, I have just re-added the tokens: [LABEL:Downloads] [DOWNLOADCOUNT] This obviously tells me the download count. The number includes the totals download counts to date (i.e it has not been reset). Therefore, I presume this information must be in the db somewhere? My next question is - anybody know which db table this information will be in please? thanks, mark.
 
New Post
7/12/2010 1:37 PM
 
sure, you can add a security role requirement to any repository token, then if the user viewing the page is not a member of that role, they will not see the token.  So, in your example, you can add a role requirement of "Administrators" to the label and the download count tokens and then no one except members of the Administrators  role will see them

To add a security role to a token, open the .xml file associated with your template. In your case that would be the template.xml file in the folder of the template you are using. Edit the file and find the token for DOWNLOADCOUNT, then add a Roles setting and set the Value to a comma delimited list of required security roles.

   1:  <Object>
   2:     <Token>[DOWNLOADCOUNT]Token>
   3:     <Settings>
   4:        <Setting>
   5:           <Name>RolesName>
   6:           <Value>AdministratorsValue>
   7:        Setting>
   8:     Settings>
   9:  Object>

You can do the same thing for your LABEL token

   1:  <Object>
   2:     <Token>[LABEL:Downloads]</Token>
   3:     <Settings>
   4:        <Setting>
   5:           <Name>Roles</Name>
   6:           <Value>Administrators</Value>
   7:        </Setting>
   8:     </Settings>
   9:  </Object>
 
New Post
7/12/2010 1:41 PM
 
The accumulated download count for each item is stored in the grmRepositoryObjects table in the Downloads column
 
New Post
7/13/2010 5:24 AM
 
great! that's perfect. I didn't know this was possible. thanks a lot.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...having a repository download count without clicks being visible to other usershaving a repository download count without clicks being visible to other users


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out