Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Download counter
Last Post 12/02/2010 10:25 AM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sergey Gimgin
New Member
New Member
Posts:7


--
11/20/2010 2:38 PM

Is there a way to count how many times a file has been downloaded or a hyperlink has been visited?

Thank you.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/22/2010 11:57 AM
Hi Sergey,

Yes. SELECT COUNT(*) FROM DMX_Log WHERE EntryId=[entry id of the document you are interested in] AND Action='Download'
This is the same for hyperlinks.

Peter
Sergey Gimgin
New Member
New Member
Posts:7


--
11/22/2010 12:27 PM
Any chance you could add a column with a number of downloads to a table and a token for it in one of the next versions?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/02/2010 10:25 AM
No. The philosophy of DMX is to try and stay "lean" and allow specific functionality to be added for each customer without forking the module. If this request would come to me regularly it would be a candidate to include in the general release. But this is the first time. So it is not going to be a column on the DMX_Entries table if that is what you asked for.

Adding it to another table doesn't look like it will help. You could just as well add a view where you extract the data as I stated earlier. A view acts as a table after all. What determines the approach you should take is "where do you want to see this and how"?

Peter
You are not authorized to post a reply.