创建使用两个节点引用链接三种不同节点类型的视图
我有以下内容类型:
- Camp - 顶级类型
- 注册信息 - 包含对名为 Camp 的 Camp 的节点引用
- 医疗发布表 - 包含对名为 Camper 的注册信息的节点引用。
我想创建一个视图,该视图采用营地的 nid,并提取注册信息和医疗发布表的所有字段。我无法弄清楚如何设置各种参数/关系。我还没有做过引用超过两种类型的事情。
我知道将注册信息和医疗发布表结合起来是明智/最好的,因为它是 1:1 映射,但我们不能。所以...任何帮助将不胜感激!
I have the following content types:
- Camp - the top level type
- Registration Information - contains node reference to Camp called Camp
- Medical Release Form - contains node reference to registration information called Camper
I would like to create a View that takes the nid for the Camp, and pulls out all the fields for the Registration Info and Medical Release Form. I'm having trouble figuring out how to set up the various arguments/relationships. I haven't done something that's referenced more than two types.
I know it would be smart/best to just combine the Registration Info and Medical Release Form, since it's a 1:1 mapping, but we can't. So... any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从底部开始,使用医疗发布表的节点类型过滤器。在 Camper 字段上创建关系。现在您有医疗释放表 ->注册信息(露营者)。
在 Camp 字段上创建另一个关系,这次将“Relationship:”设置为 Camper。这使您将所有节点链接在一起,医疗发布表 ->报名信息(露营者)->营地。
要添加字段,只需确保您选择字段来源的关系即可。要将其限制为特定的注册信息节点,请添加节点 NID 参数并将该参数的“关系:”设置为 Camper。
Start at the bottom, with a node type filter of Medical Release Form. Create a relationship on the Camper field. Now you have Medical Release Form -> Registration Information (Camper).
Create another relationship on the Camp field, this time with the "Relationship:" set to Camper. That gets you all the nodes linked together, Medical Release Form -> Registration Information (Camper) -> Camp.
To add fields, just make sure you're selecting the relationship the fields come from. To limit it to a specific Registration Information node, add a node NID argument and set the "Relationship:" of that argument to Camper.