I am using hits to on my Articles blog to show the 5 most visited paged, using the following:
On sidebar of site pages
[[!Hits?
&parents=`28`
&limit=`10`
&outputSeparator=`,`
&chunk=`hitID`
&toPlaceholder=`hit`]]
[[!getResources?
&parents=`-1`
&resources=`[[+hit]]`
&sortby=`FIELD(modResource.id,[[+hit]] )`
&sortdir=`ASC`
&tpl=`pageTitle`
]]
The chunk called hitID referenced in that call contains this
the pageTitle tpl contains this
<li class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
and on all the pages I want to have counted I have added this
[[!Hits? &punch=`[[*id]]`]]
What I cant workout is how to show how many hits each page has received, I planned in my pageTitle template to show something like pagetitle (hits)
I am sure this has been asked on here before but a search of the forum did not reveal anything about hits.
Can anyone point me in the right direction.
Cheers
Ian