This module allows administrators to set a maximum depth for terms within a specific vocabulary, preventing excessively deep hierarchies. It also offers the option to completely disable hierarchical nesting for a vocabulary.
The module allows administrators to limit max term depth per vocabulary.
It adds a "Max ancestor depth" option to the vocabulary form. The limit is added to the vocabulary config as a third-party setting. It affects the term overview form (table drag limit + validation) and the term creation/edit form (validation only). The module allows to completely disable the hierarchy on a vocabulary as well.
The module provides services for max depth reading/writing from/to the vocabulary, as well as a service that helps with ancestor depth checking. This may be useful for third-party modules that implement customized term tree UI.
TODO (patches are welcome):
- Validate existing terms when changing the vocabulary limit.
Ask your assistant about Taxonomy Max Depth
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- taxonomy Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.