chg: [tags] Moved tag helper as plugin tag helper
parent
a14dc2e8fe
commit
6a9fc98382
|
@ -9,15 +9,5 @@ class AppController extends BaseController
|
||||||
public function initialize(): void
|
public function initialize(): void
|
||||||
{
|
{
|
||||||
parent::initialize();
|
parent::initialize();
|
||||||
// $this->loadComponent('RequestHandler');
|
|
||||||
// $this->loadComponent('ParamHandler', [
|
|
||||||
// 'request' => $this->request
|
|
||||||
// ]);
|
|
||||||
// $this->loadComponent('CRUD', [
|
|
||||||
// 'request' => $this->request,
|
|
||||||
// 'table' => $this->{$this->modelClass},
|
|
||||||
// 'MetaFields' => $this->MetaFields,
|
|
||||||
// 'MetaTemplates' => $this->MetaTemplates
|
|
||||||
// ]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\View\Helper;
|
namespace Tags\View\Helper;
|
||||||
|
|
||||||
use Cake\View\Helper;
|
use Cake\View\Helper;
|
||||||
use Cake\Utility\Hash;
|
use Cake\Utility\Hash;
|
|
@ -43,5 +43,6 @@ class AppView extends View
|
||||||
$this->loadHelper('PrettyPrint');
|
$this->loadHelper('PrettyPrint');
|
||||||
$this->loadHelper('FormFieldMassage');
|
$this->loadHelper('FormFieldMassage');
|
||||||
$this->loadHelper('Paginator', ['templates' => 'cerebrate-pagination-templates']);
|
$this->loadHelper('Paginator', ['templates' => 'cerebrate-pagination-templates']);
|
||||||
|
$this->loadHelper('Tags.Tag');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,12 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
||||||
[
|
[
|
||||||
'name' => __('Type'),
|
'name' => __('Type'),
|
||||||
'data_path' => 'type',
|
'data_path' => 'type',
|
||||||
]
|
],
|
||||||
|
[
|
||||||
|
'name' => __('Tags'),
|
||||||
|
'data_path' => 'tags',
|
||||||
|
'element' => 'tags',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'title' => __('ContactDB Organisation Index'),
|
'title' => __('ContactDB Organisation Index'),
|
||||||
'description' => __('A list of organisations known by your Cerebrate instance. This list can get populated either directly, by adding new organisations or by fetching them from trusted remote sources.'),
|
'description' => __('A list of organisations known by your Cerebrate instance. This list can get populated either directly, by adding new organisations or by fetching them from trusted remote sources.'),
|
||||||
|
|
Loading…
Reference in New Issue