Access content profile fields in CCK computed field
clarkburbidge - January 27, 2009 - 09:41
| Project: | Content Profile |
| Version: | 6.x-1.0-beta3 |
| Component: | Base module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I am switching over to use content profile from the custom profile. I use computed field to generate some concatenated user info. On a separate node type from the content profile, I want to load the content profile array for a given UID. Then from this array I want to snatch what I want to mash up.
For the custom profile data I use:
user_load(array('uid' => $some_uid))
Is there some equivalent for content profile? It would seem that I'd need to load a node that corresponded to the UID.

#1
Just when I get past the point of breaking down and begging, somehow I'm able to figure it out.
In the computed field top code section I use:
content_profile_load('personal', $some_uid)
where 'personal" is my very original machine name for my content profile type. I get the UID from the cck user reference field and then call the array, get out what I want and mash it up.
Once again, great module!
#2
Closing.
#3
Could you elaborate--maybe post some of your code? I've been looking for a solution to this for some time. Thanks!
Patrick