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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsMost viewed or Most downloadedMost viewed or Most downloaded
Previous
 
Next
New Post
4/14/2009 4:58 PM
 

Is it possible to have a most viewed or most downloaded-  extension for the documents module which could be placed else where on a web site.

 
New Post
4/14/2009 5:54 PM
 

Yes, but you'll need to insure you select the "Track number of times this link is clicked" option for each document you wish to track / report (this option is selected by default).
 

Here's an example of how to use a free SQL reporting module to create your own "helper module" (just add a query in module settings):
 
   Create a "Most-Commented Blogs" module (with clickable links):
   http://www.eguanasolutions.com/DNN_Blog/EntryID/13.aspx

Note that you can place such a "SQL" module anywhere on your website (even a different portal on the same DNN instance).  The linked site above uses the "Most-Commented Blogs" example on its homepage.
 
 

To create a "most-clicked documents" list:
Using the module mentioned in the linked post, you can plug in the following SQL in the SQL module's settings:
 
  SELECT   Documents.Title AS Title,
           UrlTracking.Clicks AS Clicks
  FROM     UrlTracking INNER JOIN
           Documents ON UrlTracking.Url = Documents.URL
  WHERE    UrlTracking.ModuleId = {your DOCUMENTS module ID here}
  ORDER BY UrlTracking.Clicks desc

 

Once you have that working you can add additional HTML to make the document list clickable (see example in the linked post, ablove).
 
 
Cheers!
-mamlin
 


esmamlin atxgeek.me
 
New Post
4/30/2009 12:07 PM
 

Mamlin's comment gets you really close to a solution, however, it is important to note that there is a limitation with that query and the format that it will show for the links.

I have a blog post, Viewing Most Popular Links in DotNetNuke, that shows you a general query, it can be easily limited by adding a "ModuleId" parameter to show you the most popular for a single module instance.

As mentioned by Mamlin, you MUST be sure that you select the "Track Clicks" option for the document for this to work.

 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/5/2009 9:58 PM
Accepted Answer 

Big thanks to Mamlin and Mitch for pointing me in the right direction, not sure on which one is the accepted answer since I had used both their queries to achieve the results i was looking for.

Here is the modified query for Top 5 downloads for my site.

SELECT     TOP 5 d.Title AS [Title], t.Clicks AS [click], t.Url AS [url]
FROM         UrlTracking t INNER JOIN
                      Documents d ON t.Url = d.URL AND t.ModuleId = d.ModuleID
WHERE     (t.PortalID = 0) AND (t.TrackClicks = 1)
ORDER BY t.Clicks DESC

 

Thanks once again

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsMost viewed or Most downloadedMost viewed or Most downloaded


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