Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > how to list most popular documents View modes: 
User avatar
Member
Member
Jeffrey H. - 9/20/2010 2:13:38 PM
   
how to list most popular documents
I have been trying to figure out how to display the top 10 most popular documents in Kentico. I have seen this on this site, but I cannot seem to find out how/where to do it.

Can someone point me in the right direction please?

Thanks,

Jeffrey

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 9/24/2010 4:41:05 AM
   
RE:how to list most popular documents
Hi,

Similarly like in our site, you can use web analytics for this purpose:
http://devnet.kentico.com/docs/devguide/web_analytics_overview.htm

User page views/visits will be logged into database and then you can use query repeater to get the data and display the information on your web site.

The actual solution would depend on your criteria.
You could write a custom query and use it in the Repeater with custom query for example... please check the structure of WebAnalytics data at http://devnet.kentico.com/docs/devguide/creating_custom_reports.htm. The most usable is probably "pageviews" statistics. You could also create some report or simply use a sub-query to count the views of particular articles (test StatisticsObjectID with NodeID on equality).


Another option would be to use content rating module (http://devnet.kentico.com/docs/devguide/content_rating_module_overview.htm) for this purpose, were you would let users/visitors to rate the document/page/article and then you will display for example only top most rated articles in some location.

Hope this will help.

Regards,
Zdenek