- Ibexa DXP 5.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 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 schema builder, making it possible to automatically install its database tables when installing clean/demo data of Ibexa. 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 caches with the following command:
$ php bin/console cache:clearRun the following to correctly install assets for Ibexa Admin UI:
$ php bin/console assets:install --symlink --relative-
You can now load and create content with
eztagsfield type -
Use
TagsServicein your controllers to work with tags. The service is accessible through Symfony DIC, with IDnetgen_tags.api.service.tags