0

I have a requirement for creating a new content type and creating a new user through that.

The content type have fields like 'name', 'address' etc. but the client wants to have username and password field in that, so that the user could be created along with it.

I am a bit lost with this, any suggestions please?

1 Answer 1

2

Under Configuration->People->Account settings->Manage fields in the menu (admin/config/people/accounts/fields) you can add fields to the User entity, such as name and address.

Fields added to the User entity has a settings whether they should be displayed on user registration form.

4
  • Ok, and how could I hook those fields in the new content type creation then? Aug 3, 2013 at 10:27
  • The fields will be added to the User entity. Why do you need another content type to store name, address etc? Aug 3, 2013 at 10:28
  • I see your point, and could I assign a role to that User entity too? Aug 3, 2013 at 10:30
  • Yes, but that's another story drupal.org/project/registration_role :) Aug 3, 2013 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.