Allow taxonomy menus to contain a subset of a vocabulary tree (patch provided)

Created on 18 February 2020, almost 5 years ago
Updated 5 January 2024, 11 months ago

Hello folks,

I have put together a rough patch which allows Taxonomy Menu to show only a sub-set of a taxonomy vocabulary tree, by specifying the parent TID when configuring the menu.

The editor experience isn't great, since currently you have to enter a term ID rather than e.g. being able to select from a drop-down, but the attached patch at least adds this functionality.

If there's any interest in this functionality, I would be happy to have a look into adding the necessary code to allow the term selector to become a drop-down select list of the terms in the selected vocabulary.

Thanks for your time :)

Alex

✨ Feature request
Status

Needs review

Version

3.6

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexharries

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024