- Ibexa Platform 4.0+
Run the following from your website root folder to install Netgen Tags Bundle:
$ composer require netgen/tagsbundle
Add the file config/routes/netgen_tags.yaml
with the following content to activate Netgen Tags routes:
netgen_tags:
resource: "@NetgenTagsBundle/Resources/config/routing.yaml"
Netgen Tags Bundle uses custom database tables to store the tags. Use the following command to add the tables to your Ibexa Platform database:
$ mysql -u<user> -p<password> -h<host> <db_name> < vendor/netgen/tagsbundle/bundle/Resources/sql/mysql/schema.sql
PostgreSQL variant of the above schema file is also available at vendor/netgen/tagsbundle/bundle/Resources/sql/postgresql/schema.sql
Note: Netgen Tags supports Ibexa Platform schema builder, making it possible to automatically install its database tables when installing clean/demo data of Ibexa Platform. In that case, there's no need to install the tables manually.
Give 'Read' permissions to the 'Tags' module for the Anonymous
role otherwise the field value is empty
Clear the Ibexa Platform caches with the following command:
$ php bin/console cache:clear
Run the following to correctly install assets for Ibexa Platform Admin UI:
$ php bin/console assets:install --symlink --relative
-
You can now load and create content with
eztags
field type -
Use
TagsService
in your controllers to work with tags. The service is accessible through Symfony DIC, with IDnetgen_tags.api.service.tags