Show tag kind in tag management screen.
This commit is contained in:
parent
90ed084783
commit
5b7099e0e5
@ -40,6 +40,11 @@ class ManageTags extends HTMLController
|
||||
'data' => 'slug',
|
||||
],
|
||||
],
|
||||
'kind' => [
|
||||
'header' => 'Kind',
|
||||
'is_sortable' => true,
|
||||
'value' => 'kind',
|
||||
],
|
||||
'count' => [
|
||||
'header' => 'Cardinality',
|
||||
'is_sortable' => true,
|
||||
@ -54,7 +59,7 @@ class ManageTags extends HTMLController
|
||||
'items_per_page' => 25,
|
||||
'base_url' => BASEURL . '/managetags/',
|
||||
'get_data' => function($offset = 0, $limit = 15, $order = '', $direction = 'up') {
|
||||
if (!in_array($order, ['id_post', 'tag', 'slug', 'count']))
|
||||
if (!in_array($order, ['id_post', 'tag', 'slug', 'kind', 'count']))
|
||||
$order = 'tag';
|
||||
if (!in_array($direction, ['up', 'down']))
|
||||
$direction = 'up';
|
||||
|
Loading…
Reference in New Issue
Block a user