Old age does that I propose it and even persists capriciously, in addition to occupy space in the list of articles.
Files involved
File: controller.php
components\com_content
Code:
Code: Select all
if ($vName == 'article')
{
// Get/Create the model
if ($model = $this->getModel($vName))
{
$model->hit();
}
}
administrator\components\com_content\views\articles\tmpl
Code:
Code: Select all
<th width="5%">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
</th>
Code: Select all
<td class="center">
<?php echo (int) $item->hits; ?>
</td>