Closed (fixed)
Project:
Views attach
Version:
6.x-2.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2010 at 20:31 UTC
Updated:
16 Nov 2010 at 19:32 UTC
Hello,
I have a speaker node referenced by an agenda event node. Simple enough, however the agenda event node has four node reference fields that reference speakers. A speaker can be referenced as 'speaker', 'featured presenter', 'moderator', and 'moderator' for an event. It's functionally possible for a speaker to be referenced in all these fields for a single agenda event node (but not likely).
How would I handle this argument-wise? Add 4 arguments, one for each node reference field?
Thanks for your feedback in advance. This module has me very excited as it will help list all events a speaker will be participating in, on the speaker page itself. :)
Best regards,
Chris
Comments
Comment #1
owntheweb commented*referenced as 'speaker', 'featured presenter', 'moderator', and 'panelist' for an event
Comment #2
owntheweb commentedAh, I think I have it. If I place multiple arguments in a view, if they don't all validate, nothing shows up. However if I create 4 views, one argument each, life is good and it meets my needs.
Does that sound right? If so, I should be squared away. Thanks for a place to work out the issue. :D
Chris
Comment #3
Fr0s7 commentedThis sounds correct to me.
Remember: Always put your node references in your child content types. Your view is also displaying the child content type. Using Views Attach, the parent node id is passed as an argument to the child node reference field. This returns the child content and attaches it back to the parent node content.
So, yes... if you want multiple child 'Speakers' attached to a single parent 'Agenda', then you would create a separate node reference for each type: 'featured presenter', 'moderator', and 'panelist'. Also, you would create separate views (or at least separate view displays) for each child 'speaker' you wish to attach back to the parent 'Agenda'.
When setting up the CCK node reference field in the 'Speaker' content type, it would probably be helpful if this field could take unlimited values. That way, a single 'Speaker' could be a 'panelist' on multiple panels, etc.
Comment #4
asb commentedSolution found, seems to work, closing as 'fixed' if there are no objections.