Cover by Dylan James

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Adding a biography field to the user profile

In its default configuration, the Drupal user profile features only a few fields such as Username, Password, E-mail, and Picture. There are many potential use cases where you would want to add more fields. Drupal makes it very easy for us to add additional fields to the user profile, and it's done in much the same way as you would edit a content type. In this recipe, we will be adding a new Long text field to the user profile to provide the user with the option of adding a biography.

Tip

Adding too many fields to a user profile can have performance implications. The user object is always loaded, and with it, any extra fields added to it.

Getting ready

To complete this recipe you will need to have completed ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required