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 ...module to display popular documents within the portalmodule to display popular documents within the portal
Previous
 
Next
New Post
4/21/2008 8:53 PM
 

Hello all,

Does anyone know of a module or how to display the most popular documents within a portal? I used a dnnsql view module to write a small sql query to display the most popular documents, however, the documents get tracked within the documents table so all portals' docs are shown in the query.

Any info/suggestions/insight would be great.

thanks,
K

 
New Post
4/22/2008 10:37 AM
 

If everything is tracked in the URLTracking tables you can use SQL queries to get the information...if you are working with other modules that store documents that do not show in the URLTracking table, then you will need a more custom solution.


-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
4/22/2008 2:27 PM
 

my sql query is very basic as my sql knowledge is basic.

my query is as follows:

SELECT Top 5 *
FROM Documents, UrlTracking
WHERE Documents.URL=
UrlTracking.Url
Order By Clicks DESC

I then am able to link the appropriate doc by using the DNNSQLView module to display an xsl doc.

My question is how, if possible, do I distinguish one portal's doc from another?

 
New Post
4/24/2008 3:00 AM
 

Try this:

(UrlTracking.PortalID = whatever Portal ID you select)

SELECT     TOP 5 *
FROM         Documents INNER JOIN
                      UrlTracking ON Documents.URL = UrlTracking.Url
WHERE     (UrlTracking.PortalID = 0)
ORDER BY UrlTracking.Clicks DESC


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
4/24/2008 4:46 PM
 

Genius. Now I have run into a problem because the Documents table stores the url as "FiledID." What table does one figure out the full url that these docs are stored as? For instance, when you click on edit a document, you see a full url, but I can not find where in the database that is stored. Maybe with that info, I can figure out how to finish off this problem.

 

thanks,

K

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...module to display popular documents within the portalmodule to display popular documents within the portal


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