Module Description
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.
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.
Module Link
Project Usage
345
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of limiting the maximum term depth per vocabulary by adding a 'Max ancestor depth' option to the vocabulary form and providing services for max depth reading/writing and ancestor depth checking.
Data Name
taxonomy_max_depth