dnadesign / silverstripe-tagurit
An alternative taxonomy module, providing protected types, and inverting the Tag/Type relationship to Type/Tag
Package info
github.com/dnadesign/silverstripe-tagurit
Type:silverstripe-vendormodule
pkg:composer/dnadesign/silverstripe-tagurit
2.0.1
2026-04-19 09:25 UTC
Requires
- php: ^8.3
- silverstripe/admin: ^3.0
- silverstripe/framework: ^6.0
- symbiote/silverstripe-gridfieldextensions: ^5.0
Requires (Dev)
- cambis/silverstan: ^2.1
- cambis/silverstripe-rector: ^2.1
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- rector/rector: ^2.3
This package is auto-updated.
Last update: 2026-04-19 09:29:01 UTC
README
An alternative taxonomy module for SilverStripe
Introduction
This module inverts the term/type relationship to type/term and allows setting default/protected types/terms
Requirements
- SilverStripe 4.4
- GridFieldExtensions 3.2
Installation
Include the following in your composer.json and run composer update:
"require": {
dnadesign/silverstripe-tagurit
}
"repositories": [ { "type": "git", "url": "https://github.com/dnadesign/silverstripe-tagurit.git" } ],
Configure the yml:
tagurit_protected_taxonomy:
Type one:
- Term
- Second Term
Second type:
- Another Term
On your page, use the trait
use TaxonomyTrait; private static $many_many = [ 'CustomTerms' => TaxonomyTerm::class ]; public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldsToTab( 'Root.Terms', [ ListboxField::create( 'CustomTerms', 'Custom Terms', $this->getTermsForType('Second type') ), ] ); return $fields; }
Run the build task:
vendor/silverstripe/framework/sake dev/build flush=1