User CCK
Do you know of a module that would/could tie a user profile to a CCK created content-type?
Here's our problem: we are moving away from CiviCRM (don't get me started with the issues). Can we tie a particular content-type (or multiple content-types) through the use something like the Subforms modules to user profiles? Can we then let user creation spawn two records-- a user record; and a new node coupled to the user record? Then the content node could be used in isolation; or the user account could be edited later and those changes would alter the associated node?
User profile is great, but that creates more information for a particular user profile. We have a list of users; we have a list of contacts in content-types. There is some intersection of the two sets, but it's nowhere near 1:1, so we need to maintain the contact content-type and the user accounts but allow some commonality.
So this would behave like and/or depend upon:
- user profile
- node access
- sub-forms
- cck
I could see how I could write something like this, but I do not want to pave the same road twice if something like this exists.
Thanks in advance,
Mike


a lot of work already done here
See the Bio module, the NodeProfile module, and the Advanced Profile module to start.
You can also look a the Profiles as Nodes group -- http://groups.drupal.org/profiles-as-nodes
Cheers,
Bill
FunnyMonkey
Tools for Teachers
Thanks!
Thanks, Bill!
I will check these out!
All the best,
Mike
Tech - http://technicalmike.blogspot.com
Rants - http://mikedewolfe.blogspot.com
Etc. - http://mike.dewolfe.bc.ca
Whimsy - http://www.thosedewolfes.com/
My First Drupal site - http://www.comminit.com
Content Profile Module
http://drupal.org/project/content_profile might be worth some attention if you are looking at D6.
Hope CCK D7 can be plugged on other tables than node
Then we can directly plug CCK with the "user" table.
Instead of having this hack modules that create node for each user.
And that could be also used with other tables like comments and so one...
Nodeprofile brings a gotcha
Largely, nodeprofile worked like a hot-damn
The downside of nodeprofile: it can make exposed nodes filled with contact information.
Here is my workaround (could also be accomplished via Content_Access permission settings)
<?php// hiding general users from plain view
global $user;
$see_contact = FALSE;
if ($user->uid == $node->uid) {
$see_contact = TRUE;
}
else {
// the admin role is "4"
foreach ($user->roles as $key_role => $value_role) {
if ($key_role == 4) {
$see_contact = TRUE;
}
}
}
if ($see_contact === TRUE) {
?>
Themeing/templating code here
<?
}
?>
Tech - http://technicalmike.blogspot.com
Rants - http://mikedewolfe.blogspot.com
Etc. - http://mike.dewolfe.bc.ca
Whimsy - http://www.thosedewolfes.com/
My First Drupal site - http://www.comminit.com