Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions component/backend/forms/filter_items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
<option value="i.title DESC">JGLOBAL_TITLE_DESC</option>
<option value="i.id ASC">JGRID_HEADING_ID_ASC</option>
<option value="i.id DESC">JGRID_HEADING_ID_DESC</option>
<option value="i.hits ASC">JGLOBAL_HITS_ASC</option>
<option value="i.hits DESC">JGLOBAL_HITS_DESC</option>
<option value="i.access ASC">JGRID_HEADING_ACCESS_ASC</option>
<option value="i.access DESC">JGRID_HEADING_ACCESS_DESC</option>
<option value="i.language ASC">JGRID_HEADING_LANGUAGE_ASC</option>
Expand Down
1 change: 1 addition & 0 deletions component/backend/forms/item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
<field
name="hits"
type="number"
default="0"
label="JGLOBAL_HITS"
class="readonly"
readonly="true"
Expand Down
1 change: 1 addition & 0 deletions component/backend/src/Model/ItemsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct($config = [], MVCFactoryInterface $factory = null)
$config['filter_fields'] = [
'search',
'id', 'i.id',
'hits', 'i.hits',
'release_id', 'i.release_id',
'category_id', 'c.id',
'title', 'i.title',
Expand Down
9 changes: 8 additions & 1 deletion component/backend/tmpl/items/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ class="visually-hidden"><?= Text::_('INFO'); ?></span>
<th scope="col" class="d-none d-md-table-cell">
<?= HTMLHelper::_('searchtools.sort', 'JFIELD_ACCESS_LABEL', 'i.access', $listDirn, $listOrder); ?>
</th>
<th scope="col" class="w-1 d-none d-md-table-cell">
<?= HTMLHelper::_('searchtools.sort', 'COM_ARS_ITEM_FIELD_HITS', 'i.hits', $listDirn, $listOrder); ?>
</th>
<?php if (Multilanguage::isEnabled()) : ?>
<th scope="col">
<?= HTMLHelper::_('searchtools.sort', 'JFIELD_LANGUAGE_LABEL', 'i.language', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<th scope="col">
<th scope="col" class="text-center">
<?= Text::_('JPUBLISHED') ?>
</th>
<th scope="col" class="w-1 d-none d-md-table-cell">
Expand Down Expand Up @@ -224,6 +227,10 @@ class="width-20 text-area-order hidden">
<?= LayoutHelper::render('joomla.content.language', $item); ?>
</td>
<?php endif; ?>

<td class="w-1 d-none d-md-table-cell">
<?= $item->hits ?>
</td>

<td class="text-center">
<?= HTMLHelper::_('jgrid.published', $item->published, $i, 'items.', $user->authorise('core.edit.state', 'com_ars'), 'cb'); ?>
Expand Down