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.
| Comment | File | Size | Author |
|---|---|---|---|
| entity_reference_tree-support_entity_hierarchy-1.patch | 2.87 KB | bgilhome |
Issue fork entity_reference_tree-3109105
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
Comment #2
a.milkovskyWorks perfect!
Comment #4
freddy rodriguezThe 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
Comment #5
freddy rodriguezComment #6
freddy rodriguezSorry for the last two comments, the patch is working as expected.
Comment #7
coaston commentedHi,
Can anyone explain what this patch should do exactly ? any printcreen? I just applied it but i do not see any difference.
Comment #9
freddy rodriguezCan 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...
Comment #11
freddy rodriguezComment #12
mingsongSupporting another contribute module is a feature request.