Populate child node with CCK Parent node field
Parkes Design - July 13, 2009 - 15:20
| Project: | Node Relativity |
| Version: | 6.x-3.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi firstly great module, it has been very useful for me.
I have a question, how would I go about populating a child node cck field with a parent node field data?
Say that the parent node's content type is Job Details and it collects information about the job like address etc and the child node's content type is Inspection and it collection information about an inspection but also has duplicate information from the parent node. Is there a way to auto populate the fields without using the prepopulate module that allow users to see sensitive information in the url and browsers history?
Thanks any help would be appreciated.

#1
Is there a way to achieve this? any suggestions?
#2
I 'm also interessed in doing this
#3
Terry... I found another solution by not using node relativity but a combination of modules to achieve the same result. Node Relationship, node ref url and rules.
#4
I was able to add the parent node to the child doing this:
Create a field in the child content type,
Under 'Default Value', PHP code add:
$parent = is_numeric(arg(4));
if($parent == true){
return array (
0 => array ('nid' =>arg(4)),
);
}