chg: [tags] Moved tag helper as plugin tag helper

pull/72/head
mokaddem 2021-09-02 11:52:47 +02:00
parent a14dc2e8fe
commit 6a9fc98382
4 changed files with 8 additions and 12 deletions

View File

@ -9,15 +9,5 @@ class AppController extends BaseController
public function initialize(): void
{
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
// ]);
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace App\View\Helper;
namespace Tags\View\Helper;
use Cake\View\Helper;
use Cake\Utility\Hash;

View File

@ -43,5 +43,6 @@ class AppView extends View
$this->loadHelper('PrettyPrint');
$this->loadHelper('FormFieldMassage');
$this->loadHelper('Paginator', ['templates' => 'cerebrate-pagination-templates']);
$this->loadHelper('Tags.Tag');
}
}

View File

@ -71,7 +71,12 @@ echo $this->element('genericElements/IndexTable/index_table', [
[
'name' => __('Type'),
'data_path' => 'type',
]
],
[
'name' => __('Tags'),
'data_path' => 'tags',
'element' => 'tags',
],
],
'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.'),