infoweb-internet-solutions / yii2-taxonomy
Taxonomy module for Yii2
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 0
Open Issues: 2
Type:yii2-extension
Requires
- bower-asset/bootstrap-select: @stable
- bower-asset/jquery-cookie: @stable
- creocoder/yii2-nested-sets: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-21 19:16:13 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require infoweb-internet-solutions/yii2-taxonomy "*"
or add
"infoweb-internet-solutions/yii2-taxonomy": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply modify your backend configuration as follows (if you have the infoweb/cms module installed):
'modules' => [ ... 'taxonomy' => [ 'class' => 'infoweb\taxonomy\Module', ], ... 'cms' => [ 'sideBarItems' => [ 'modules' => [ [ 'label' => 'Taxonomy', 'i18nGroup' => 'infoweb/taxonomy', 'url' => '/taxonomy/term', 'authItem' => 'showTaxonomyModule', ], ], ], ], ],
Import the translations and use category 'infoweb/taxonomy':
yii i18n/import @infoweb/taxonomy/messages
To use the module, execute yii migration
yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-taxonomy/migrations