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.
Hi,
How i can get it working with multiple parent terms? Is it possible?
Example:
Term 1
-Term 2
Term 3
-Term 2
Term 2 have two parent items (Term 1 and Term 3).
I was trying to get it working but im stucked. Any idea how its can be achived?
Any suggestion is welcome.
Comments
Comment #1
Arrok CreditAttribution: Arrok commentedHi,
I managed the following workaround:
the link for the exposed filter is something like this
mysite.com/?some_field=some_value&field_shs_test_tid=27
i took with jQUery my links and rewrote them with like this
mysite.com/?some_field=some_value&field_shs_test_tid[]=27,28,29,30
now considering that 28,29 and 30 are 27's children, it will now show me all that have 27,28,29 and 30 as deepest, so it shows 27 my selected and 28-29-30, it's children.
So if you have something like this
term 1
--term2
--term3
--term4
----term5
----term6
--term7
term8
for 4 and it's children use mysite.com/?some_field=some_value&field_shs_test_tid[]=4,5,6
for 1 and it's children you must write mysite.com/?some_field=some_value&field_shs_test_tid[]=1,2,3,4,5,6,7
Hope this helps you for now until a new release comes out.
Best regards,
Arrok
Comment #2
stBorchertDid you try using "Taxonomy term with depth" filter?
Comment #3
stBorchertIssue cleanup.