Create 3 vocabulary
- A with terms (a1, a2)
- B with terms (b1, b2) and 1 field - field_ref_to_A_term (term reference type)
field for term b1 refers to a vocabulary term a1
field for term b2 refers to a vocabulary term a1
- C with terms (c1, c2) and 1 field - field_ref_to_A_term (term reference type)
field for term c1 refers to a vocabulary term a2
field for term c2 refers to a vocabulary term a2
create content D with 2 fields
- field_ref_to_A_term (term reference type)
- field_second (entity reference type - Target type - taxonomy term / Target bundles B, C )
field_second will contain the terms of the vocabulary B and C
use the "Reference field option limit" to Limit this field's options according to matching field values
Matching fields - field_ref_to_A_term
My problem is that no matter what I choose in the first field (ref_to_A_term) when creating content, the second field contains only the terms vocabulary C.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_reference_for_2_vocabulary.tar_.zip | 2.42 KB | yk2013 |
| is.png | 17.12 KB | yk2013 |
Comments
Comment #1
joachim commentedThat's interesting. I wonder if it's because you are using taxonomy, where core reference fields only ever point to one vocab.
Any chance you could roll all those vocabs and content types and fields into a Feature so I can test it?
Comment #2
yk2013 commentedThank you very much for your reply, I tried to use the Feature, but not sure what to include everything you need. See the attached file