How to create more than 1 profile (of a specific content-type)?

Events happening in the community are now at Drupal community events on www.drupal.org.
sportel's picture

I made a content-type "student_profile" for students to fill in their profile. I also made a content-type "parent". I want the students to be able to add more than 1 parent profile (to their own profile-page). Most students have more than 1 parent and sometimes their parents are devorced, in which case it would be usefull to have e.g. both parents addresses.

Any solutions?

Thanks,

Mike.

Comments

Two ways that come to

caschbre's picture

Two ways that come to mind...

1) If the parents are already in the system the use the user-reference option to let the student reference the parent.

2) If the parents are not users of the system, then just use a node reference and let the student reference the parent content.

Hi caschbre, Thanks for your

sportel's picture

Hi caschbre,

Thanks for your reply. I like your simple solution, but...

I like the "Create your Profile Parent" link on the user profile page. So when a student has filled in his own profile, he can easily create a new section on his profile page with the data/bio of his parents.

When I would use your second solution (the parents aren't users on my system), the student first would have to fill in the parent content, and than go to his profile page to link to this node (with node reference). Also, I think the student would also be able to see the nodes of other students parent, which isn't very nice.

But still, thanks for your suggestion.

Mike.

You could have the parent

caschbre's picture

You could have the parent nodes reference the student node. Then you could use the node reference url widget (http://drupal.org/project/nodereference_url) to automatically set the reference. That would still allow you to see who are the parents of said student.

How to create more than one node

Crom's picture

Hi, This is over a year old but I've been wrestling with this for a little while. I understand the user reference/node reference but I can't see how I can create more than one node from the profile. Say I have a parent as a user of a site I'm building and I want them to be able to add their children to their profile then I need to be able to allow them to create 'many' children from their profile page. I have created a 'child' content type and have that working but how can I allow them to create more than one children?

I have also tried the multigroup feature in cck 3 which looks perfect but can't really use an alpha version on a production site.

I'm sure it's a small step I'm missing but can't seem to work it out.

Any help would be much appreciated.
Cheers,
Crom

Profiles as nodes

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week