Share » Forums » Setup & design » Show Page Views

Show Page Views

Show Page Views

Tuesday 13 October 2009 5:01:26 am - 1 reply

Author Message

Gaetano Giunta

Tuesday 13 October 2009 7:51:23 am

You will need to enable the cronjob that parses the webserver logs and stores that info back into eZP (updateviewcount.php, by default commented in cronjobs.ini in the standard cronjob part).

Then you can use $node.view_count in your node template to display it.

Take care: by deafult, with view cache on, the number will only be increased when the object is edited again, so you will also have to disable the view cache for those nodes where the view count is shown, using something like: {set-block scope=global variable=cache_ttl}86400{/set-block}

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu