User CCK

dewolfe001's picture
public
dewolfe001 - Tue, 2008-06-10 14:36

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

billfitzgerald's picture
billfitzgerald - Tue, 2008-06-10 15:12

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!

dewolfe001's picture
dewolfe001 - Tue, 2008-06-10 16:49

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

flickerfly's picture
flickerfly - Mon, 2008-06-23 02:56

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

Julien Marboutin's picture
Julien Marboutin - Sun, 2008-08-17 21:57

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

dewolfe001's picture
dewolfe001 - Mon, 2008-09-22 23:42

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