Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2011 at 15:08 UTC
Updated:
25 Jan 2011 at 14:17 UTC
I have a data model as shown in attachment. My view have “A” as a main content type. Then I created relationship “b” to “B” content type. Works. But I can't figure out how to show fields from “C” content type.
Nothing seems to work, for example chaining relationships. Even if I changed name of node reference field in “C” to something different than “b”. Views seems to join “C” table by node “vid” column instead of node reference field – this can't work because “A” and “C” tables have completely different nodes (vid).
Any help will be appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| content-types.png | 5.16 KB | mki |
Comments
Comment #1
mki commentedThe answer is Reverse Node Reference module. From module description:
(Thank you markus_petrux for great module)
My Relationships:
Content: "b"
("b") Content reverse references: "b" reverse reference
My Filters:
Node: Type = "A"
("b" reverse reference) Node: Type = "C" (<-- this is needed to avoid duplicated results in view while reusing "b" field for two relationships)
Comment #2
mki commented