The Entity Hierarchy module seems like a good candidate to support in this module - it's basically an entity reference field to reference a 'parent'.

Patch attached adds support for the module, so that bundles containing an Entity Hierarchy field show the hierachy in the tree widget. This could even be generalised to support any core entity_reference field by adding a configuration setting to the widget to nominate the entity reference field to use as the 'parent' data.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bgilhome created an issue. See original summary.

a.milkovsky’s picture

Status: Needs review » Reviewed & tested by the community

Works perfect!

Freddy Rodriguez made their first commit to this issue’s fork.

freddy rodriguez’s picture

The patch is working fine in d8, but when is applied
to the 2.0.1 branch occurs the same described in this issue:

https://www.drupal.org/project/term_reference_tree/issues/3164361

freddy rodriguez’s picture

Version: 8.x-1.x-dev » 2.0.1
Status: Reviewed & tested by the community » Needs work
freddy rodriguez’s picture

Status: Needs work » Reviewed & tested by the community

Sorry for the last two comments, the patch is working as expected.

coaston’s picture

Hi,

Can anyone explain what this patch should do exactly ? any printcreen? I just applied it but i do not see any difference.

freddy rodriguez’s picture

Can this patch be merged with the main branch in order to work on D10?

Is not working on D10: Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2020-01-26/entity_reference_tree-sup...

freddy rodriguez’s picture

Category: Support request » Bug report
Status: Reviewed & tested by the community » Needs work
mingsong’s picture

Category: Bug report » Feature request

Supporting another contribute module is a feature request.