Wednesday, June 6, 2012

How to add extra fields to user profile in Drupal website?

The default Drupal 7/ Drupal 8 or any version has user profile section. The user profile section has only few fields like username, password, email address, profile picture and time zone. Is it adequate always? Probably not. For example, you would like to create a social networking website and you may need to add more information in the profile section like first name, last name, age, contact number, country etc. Another example is that you have a shopping website and you may need to provide service countrywide and you need to differentiate people countrywide. How to do that? This question was asked yesterday when I was giving training to a Drupal conference. Yes, this is possible and you may add unlimited no of fields to the user profile according to your site requirements. It’s very simple and easy. In this page, I would discuss how to add extra fields to user profile in Drupal website.

Requirements:

  • Drupal installed website

Additional Modules:

  • No additional module is required.

Steps to add extra fields to user profile in Drupal website:

Drupal is a wonderful CMS and using Drupal anything is really possible. To add any extra field to your Drupal website is really very easy and simple. Follow the following steps to add extra fields to user profile in Drupal website:

Step 1: Log in to your Drupal website admin control panel. using the username and password. After successful logged in, you will be on the Dashboard of your Drupal website. [For details, read How to log in to the Drupal 7 Administrator Dashboard? Dashboard panel log in]

Step 2: From the Dashboard, you will find a link Configuration and click on that link to access the configuration control panel of your Drupal website.

Step 3: Go to the Account settings page under People block from the website configuration page.

Step 4: From the Account settings page, go to the Manage fields tab by just clicking that tab.

Step 5: Now, add the necessary field as you are in need for the profile of the users. For example, we need to add a field Country for our website users. So, we add a country field there. In this way, you have to add as many fields as your are in need.

image

Step 6: When you have completed adding fields, click on Save button to save the configuration.

Following the above steps, you can easily add extra field to user profile in your Drupal 7 website. It is mentionable that we only add one extra field in this tutorial and you may need several fields to user profile. Just add the fields and that’s all.

image