Can someone point me to information for how to use to child and parent in node family?
What I want to do is store a lot of one type of data in a node with different references, then pull out all of the data with one specific reference.
For example:

| Person            |  Band        |
 -------------------| -------------
|George Harrison    | Beatles      |
|Ringo Starr        | Beatles      |
|Peter Tork         | Monkees      |
 ---------------------------------

How would I connect into this child node and get only the records with a "Band" of "Beatles?

I guess what I am asking:
Can this been done through the node family functionality as it is?
If so, where is information on this?
If not, is someone working on a capability like this?
If not, I would like to tackle that. I am a Drupal newbie, but I have worked with PHP for 7+ years.

Comments

fago’s picture

you can setup any node relation you want if you set the relation yourself using nodefamiliy's api - e.g. use the function nodefamily_relation_add(&$parent_node, &$child_node).

if you want nodefamily to set the relation for you, then it works only if each nodes, that shall be related, are created by the same author - or the admin sets the node author appropriate.

so you set the relation between persons and bands and nodefamily will automatically create a relation between EVERY nodes of this types which are authored by the same user.
so nodefamily provides no end user interface for setting a relation, however this could be achieved easily with e.g. the cck node reference field type.

fago’s picture

Title: Node family » how to use Node family
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
fluitfries’s picture

Hi,

I am another confusede user but this thread has pointed out exactly what I am trying to achieve. My relationships do not have anything to do with who the author is, but instead need to be manually created.

I have a CCK type, and each of these nodes already has a "userreference" set up to link to a specific user. I would like the reverse to be true. So on my Usernodes, I would like Node Family to create the relationship between that user and the CCK node that references them. The reference could also work the other way, I don't have a problem re-creating the references so that it's from User to CCK instead of the reverse.

I am thinking that this will require the nodereference ability of CCK, but I have absolutely no idea how to set it up.

I have already installed Usernode, Node Profile, Family Node, CCK, and views. All my nodes and users are created. I would just like the Usernode to reference (or even output) the CCK that I "assigned" to that user.

Please help!!