So I had this specific task to implement:
Allow users to select multiple taxonomies with some conditions:

  • Users should select deepest items in the taxonomy, otherwise do not validate selection
  • On specific content type restrict selection to first level term
  • On other content types restrict selection to second level terms

In order to achieve it, I used this module. In order to get the restrictions working from managed display tab, did a small patch.

Comments

AlexeiK created an issue. See original summary.

AlexeiK’s picture

StatusFileSize
new3.01 KB

Here is the patch.

AlexeiK’s picture

StatusFileSize
new3.95 KB

Found a display bug after level restriction is applied, here is the patch to fix rendering.

anybody’s picture

Well I guess not all of this belongs into the module, but should be solvable with a hook instead. So instead you shoud check, if this is solvable via existing hooks, otherwise create a patch with the hooks and decide which functionality is general enough to include in the module.

stborchert’s picture

Version: 8.x-1.0-alpha4 » 2.0.x-dev
Status: Needs review » Needs work
Issue tags: -

+1 for the approach using hooks