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?

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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