Installation¶
Requirements¶
- Drupal core
^11.1or^12. - The core Taxonomy module, which Tagify declares as a dependency.
- Optional: Token for the token browser in the info label settings.
Submodules have their own requirements; see each submodule page.
Install the module¶
composer require drupal/tagify
drush en tagify
Or enable Tagify at /admin/modules.
The Tagify JavaScript library¶
By default the module loads Tagify 4.37.1 from cdnjs.cloudflare.com. That
works without any extra step, but fails where third party requests are
blocked: a strict Content Security Policy, an offline deployment, or a company
policy. The Tagify formatter also loads the Tagify stylesheet on front end
pages, so with the CDN every visitor requests it from a third party. Serve the
library locally if that matters for your privacy or consent policy.
The module checks for libraries/tagify/dist/tagify.js. When the file exists,
the local copy replaces the CDN files automatically.
Option 1: download the library¶
- Download the release from https://github.com/yairEO/tagify/releases/tag/v4.37.1.
- Extract it to
libraries/tagify, so thatlibraries/tagify/dist/tagify.jsexists.
Option 2: Composer¶
Add a package repository to the project's composer.json:
"repositories": [
{
"type": "package",
"package": {
"name": "yaireo/tagify",
"version": "4.37.1",
"type": "drupal-library",
"dist": {
"url": "https://github.com/yaireo/tagify/archive/refs/tags/v4.37.1.zip",
"type": "zip"
}
}
}
]
Make sure drupal-library packages install into web/libraries:
"extra": {
"installer-paths": {
"web/libraries/{$name}": ["type:drupal-library"]
}
}
Then require it:
composer require yaireo/tagify
Check which source is active¶
Open the status report at /admin/reports/status and find Tagify library.
It reads Served locally or Loaded from CDN. The browser's Network tab
shows the same thing.