I tried for hours to make article hits display in tag pages, but I failed. The tag page doesn't except the hits parameter. When I insert this in the tag.php:
I get these warnings:
Notice: Undefined property: K2ViewItemlist::$item in C:\xampp\htdocs\joomla\templates\mytemplate\html\com_k2\templates\default\tag.php on line 49
Notice: Trying to get property of non-object in C:\xampp\htdocs\joomla\templates\mytemplate\html\com_k2\templates\default\tag.php on line 49
Line 49 is the line I posted above. Any suggestions?
<?php echo $this->item->hits; ?>I get these warnings:
Notice: Undefined property: K2ViewItemlist::$item in C:\xampp\htdocs\joomla\templates\mytemplate\html\com_k2\templates\default\tag.php on line 49
Notice: Trying to get property of non-object in C:\xampp\htdocs\joomla\templates\mytemplate\html\com_k2\templates\default\tag.php on line 49
Line 49 is the line I posted above. Any suggestions?