Page 1 of 1

Hitcounter list

Posted: Thu Jan 17, 2019 8:30 am
by Barrowboy
Hi

I am using version Cmsms 2.2.8 and i am try to display a list of page hits on a page using the hitcounter module.

I have this code in the page content.
{HitCounter action=popular limit=50} which produces this error.
ERROR: at line 1067 in file /home/mysite.org.uk/lib/classes/class.CmsLayoutTemplate.php:

If I change the word 'popular' to 'default' the page works but no list just one zero shows.
Why does the 'popular' show error.

Can you advise please.
Thanks

Re: Hitcounter list

Posted: Thu Jan 17, 2019 3:39 pm
by DIGI3
It looks like the module isn't creating a default template on install. You can probably report this as a bug, but it's easy enough to remedy:

In Design Manager, create a new template of the type "HitCounter::Popular List". Give it a name, then in the Advanced tab set Default to "Yes".

Re: Hitcounter list

Posted: Fri Jan 18, 2019 4:00 pm
by Barrowboy
Hi

That as cured the problem.

Thanks