This is my node relationship model (relationships created using a nodereference field in the children content types);
Project
|
----> Job
|
----> Job
|
----> Job
|
----> Task
|
----> Task
My Goal:
Have a view in the Project Node that displays all the Tasks that are associated with it as evaluated by the downstream relationships Job -> Task. i.e. a double layer of relationships needs to be evaluated.
What I've done so far;
I've created a Calculated Field in CCK for each task to store the NID of the Project (evaluated by querying the Task's parent Job node reference field)
So now I have a Project (with an NID) and a list of tasks that have that same NID in a custom field - e.g. like a nodereference field, but not quite.
The bit I need help with:
I think that views arguments is the place where I want to be, but after that I'm not sure how to link the "Node ID from URL" back to the custom field. Maybe I need to be using the Provide Default Argument -> Default PHP code field?
I've looked at many examples but I can't see anything close to what I want and I can't conceptualise what to do from scratch.
Would greatly appreciate any assistance
Thanks,
Duncan
Comments
Comment #1
sammy-node commentedSorry the Node relationship diagram I made lost it's formating - I basically wanted to visually show that a single PROJECT can have many JOBS and that in turn can have many TASKS
Comment #2
sammy-node commentedActually - I can/should explain this more simply than above:
I have two node types. I've related one to another by adding the first node's NID to a custom CCK field in the second node type.
I'd like to display a block-view of connected nodes to the current node by means of that custom CCK field.
(FYI - I'm not using node-reference becasue the relationship is inherited/calculated from a third node type)
I think creating a simple filter using Provide Default Argument -> Default PHP code field could be a good way to do this. If so, how would I construct this filter please?
Comment #3
Letharion commented@duncano
I'm sorry you haven't received any help on this issue. I'm cleaning up old issues from the queue, and will close yours due to it's ago. If this is still relevant to you, please re-open it, and the new Views bug squad will try to assist you.