Save term lineage

Created on 8 February 2018, almost 7 years ago
Updated 30 August 2024, 4 months ago

Hi there,

Thanks for the useful module.

I've added a patch to save the taxonomy term lineage (a much requested feature).

This is useful for example when the content needs to store all the data points, to serve the data via API.

The current approach does as follows:

  1. Adds a checkbox to the form display widget settings to "Save lineage"
  2. If "Save lineage" is checked, the widget function massageFormValues will transform the data to the lineage set on save
  3. If "Save lineage" is checked, the patch will alter the default settings on display to just set the taxonomy term "leaves" for the SHS widget render

It adds and uses a new class in Drupal\shs\Utility\TermLineage; based on the key code from the hierarchical select module.

Will attach the patch shortly.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand davidwhthomas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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