If I use a cck reference in a node, can I use that to get data related to the reference to auto populate other fields in a node?
I have a weird question. Lets say I have a cck reference field in a content type.
Like, lets say I have a content type called company with a company name, phone number and address.
Let's say a person fills out another node from other content type that uses CCK Reference to reference the company name. If I pull in the company name into this other content type, can I also use CCK reference to auto populate the phone number and address field in the content type that the reference field is in?
I know normally the company name, which is being referenced would be a link that would link back to the content type/node that was originally published for it, but what if I just wanted all the values for that node to be spit out on another node automatically?
Is this possible?
Let me know if I am being confusing and I will try to explain more.
Becky

Attach Field Content from One Node to another Node
It's not a weird question. I'm trying to figure out the same thing. And I've seen other people asking the same thing. There does not appear to be a standard simple way to do this.
In my case I'm deving a site for a dog breeder. He has nodes to show off each of his adult males and nodes to show off each of his adult females. I need to create nodes for breeding pairs selected obviously from among the existing males and females. I just need one existing photo from the male page and one existing photo from the female page (each of which is linked back to the original node) to start the breeding pair node off, and later add in the pups from the litter. Node Reference gives me a link to the nodes but nothing else it seems.
Similar/same questions that you may or may not have already found:
http://drupal.org/node/258097
http://drupal.org/node/129295
http://drupal.org/node/123215
Good luck to all who need this,
Derek
Derek G
DGTLife, LLC
Drupaling since 2008
This May be the Solution
I just found this module. You can have a look at it as well...if you haven't already found it yourself.
http://drupal.org/project/nodereference_variables
Derek
Derek G
DGTLife, LLC
Drupaling since 2008
Trying to get my head around this
Suppose I have a content type with a couple of fields. The content type is called sketches. I have made myself a whole library of nodes with this content type.
I also have a second content type called use case descriptions.
In short there exists some partial overlap between the two content types.
What I want to do is to make a new node ucd, then select a sketches-node from my (filtered?) list of sketches and have this select action result in populating some fields in ucd with fieldcontent from the selected sketches-node.
I would simply use views if i needed just a subset of the sketches-content type's fields but i need these ucd's to be full fledged autonomous nodes.
I don't think nodereference_variables is suited for this and it goes against all my mvc education to do this stuff in a preprocess function anyway.
I also looked at another way of getting overlapping but seperate node sets by cloning and converting with node_clone and node_convert. But that's too much hassle. It seems like a nice tool for admins, though.
Also, I've been able to do something similar to this with external content through the feedapi using simplepie and the feed element mapper module.
The best solution for my case simply seems to be using node_reference.
I just stumbled upon a supplementing module that appears to do just about everything I described above, noderelationships. It needs cck and node_reference as well as something called the Modal Frame API, but its feature list is rich. I'll be sure to check it out.
I look forward to feedback and other suggestions. Cheers, Willem
...of je stopt de stekker erin.
Hi, I ended up going the same
Hi,
I ended up going the same route as you. Using node reference, noderelationships and modal frame API. Works well enough to get the job done.
Becky
is there anything special you did to achieve this?
Hi Becky and whatdoesitwant,
Did you do anything special or tricky to achieve this using those modules? Will it be fairly straight forward to a competent drupaller? is it something you could quickly outline here?
Thanks,
Mike
Veneer | Crack-proof Creative
http://www.veneerstudio.com
Using this method
Hi Willem,
Using this method were you able to "populate some fields in ucd with fieldcontent from the selected sketches-node."?
I've installed the setup and to me this seems like a fancy node reference setup -- without the field mapping you mentioned in your post.
Thanks,
Mike
Veneer | Crack-proof Creative
http://www.veneerstudio.com