Hello,

I'm trying to create a module that will display a couple of cck fields from content profiles, and a form that allows the user to update a subset of their own content_profile fields from this same page (rather than from the standard content_profile edit page).

I can access content_profile values fine, but I'm at a loss as to how to update them. I'd go straight to the database, but i have no idea how to ensure i'm updating the right conent_profile.

Any suggestions would be greatly appreciated.

Thanks,
Kyle

Comments

scalp’s picture

Have a look at the editable fields module. I'm trying to do something similar in adding a field to a block via a template file. If that module gives you what you want would you mind posting your solution here as to how to get the content profile field shown that you want? I'm trying this:

global $user;
$contentprofile = content_profile_load('profile', $user-uid);
print $contentprofile->field_gender[0]['value']

I just can't figure out how to load up the entire field so that it will work with editable fields. It's a content taxonomy field so that may be part of my problem.