Posted by dsms on April 5, 2009 at 7:07pm
Hi,
I'm using the content_profile module for user-profiles and I don't want the user to take the extra step to create
its own profile node.. instead the profile-node should be automaticly created after the registration..
is that somehow possible?
further I want to hide the title and text input-fields at the profile-node edit page, (user should only stick to
some Taxonomy-terms via cck).. I found the auto_nodetitle module for doing this job for the title-field, but any suggestions
on the text-field?
thanks for your help,
sebastian
Comments
To auto-create the profile
To auto-create the profile node, you could expose some of your profile fields on the registration form - so at the time of registration the user would fill in their profile info. The latest -dev release of content_profile supports these settings in the profile content type configuration screens.
As far as node title, if by the text-field you mean the node body, could you not clear "Body field label" under content type settings? For title, autonodetitle works pretty well for me, too
question on auto-create profile
I too would like to hide the title and body... in fact, i'd like to prepopulate it with something (Since it's required) and never show it to the user. is this possible?
http://drupal.org/project/aut
http://drupal.org/project/auto_nodetitle is the way to set the title automatically. It may not play well with auto-creation of the node at the time of registration, depending on whether the hooks that ANT uses will be fired. You'd need to try it to make sure if works for you.
Not sure about how to do it for the body.
Greetings
The remainder of the functionality described here should be available next week. I've sponsored some work on content_profile_registration, which means that taxonomy terms, fields and any other widgets that would normally be available on the node form will be available as an option for profile node creation on registration.
Fields that are "opted out" can be edited on the profile node edit page. Title field can be handled of course by ANT as mentioned.
Hopefully, this will also be fully integrated with autoassignrole module, which will enable further configuration options to be made available.
Hope that helps! :)
Nik
Web Development in Nottingham, UK by Kineta Systems / Follow me on Twitter! @NikLP
Web Development in Nottingham, UK by Kineta Systems / Follow me on Twitter! @NikLP
How to auto-create the profile - in detail
Hi alex.k
Thanks for your input.
I am trying to assign the fields created at:
Administer » Content management » Profile » Manage Fields » Configure
But can't find any setting variable to do so.
Further more, the info should appear under the user info page.
But there are no new fields shown. Should that be done with views?
Thanks for your info!
Nodes designated as profile
Nodes designated as profile nodes will appear in the user account page. Pls make sure you have checked "Use as content profile" on the content type settings page (default is /admin/content/node-type/profile). If it's checked the page will gain another tab called 'Content Profile', where you can choose how to show the profile node.
Thank you Alex, now I found
Thank you Alex, now I found the checkbox, with your kind help!
No problem
No problem, good luck :)
Taxonomy Terms are Hidden
The only problem I have with the "Hide Other Forms" is that it hides my Taxonomy term selections on the registrations. Otherwise if I don't select it the "Body" shows up in the registration form. Any way to work around this?
On the content type
On the content type management edit tab page, leave the 'body field label' empty in submission form settings.