Show tag kind in tag management screen.

This commit is contained in:
Aaron van Geffen 2016-09-04 17:21:25 +02:00
parent 90ed084783
commit 5b7099e0e5

View File

@ -40,6 +40,11 @@ class ManageTags extends HTMLController
'data' => 'slug', 'data' => 'slug',
], ],
], ],
'kind' => [
'header' => 'Kind',
'is_sortable' => true,
'value' => 'kind',
],
'count' => [ 'count' => [
'header' => 'Cardinality', 'header' => 'Cardinality',
'is_sortable' => true, 'is_sortable' => true,
@ -54,7 +59,7 @@ class ManageTags extends HTMLController
'items_per_page' => 25, 'items_per_page' => 25,
'base_url' => BASEURL . '/managetags/', 'base_url' => BASEURL . '/managetags/',
'get_data' => function($offset = 0, $limit = 15, $order = '', $direction = 'up') { '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'; $order = 'tag';
if (!in_array($direction, ['up', 'down'])) if (!in_array($direction, ['up', 'down']))
$direction = 'up'; $direction = 'up';