Searched and can't see an obvious answer on how to provide a "most viewed" style option for sorting and displaying CGBlog posts.
I was wondering if I could use HitCounter to get the most visited pages, and use this info to display the most visited CGBlog posts?
In my CGBlog Detail template I added:
Code: Select all
{HitCounter key1="CGBlog" key2=$entry->id}Code: Select all
{HitCounter action=getmostvisited ndays=30 key1=CGBlog assign='theidlist'}
{foreach from=theidlist item=oneid}
{CGBlog action=popular articleid=$oneid}
{/foreach}Any ideas on how to make this work? Another way?
Thanks for any help.
Cheers,
Paul


