Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you select just the child, the module does its job, creates a path with the full taxonomies. Then, select the root or parent, and also the child. Then the module just returns the path to the parent, not including the child.
Example, select:
-puschairs x
-- all terrain x
The module will just return in the node: puschair/my-title
Select now just the child:
-puschairs
-- all terrain x
Then the path is right:
puschair/all-terrain/my-title
In some scenarios we need to select both, child and parent, and the right path is obviously the full path.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1978436-rootchild-select.patch | 2.57 KB | alexmoreno |
Comments
Comment #1
alexmoreno CreditAttribution: alexmoreno commentedand here is the patch. The sql query was too simple, I have added a function to return the deepest child of those selected, so if you select both, root/parent and child, it will return the child as an object $term.
Comment #2
alexmoreno CreditAttribution: alexmoreno commented