Adding a users' website link (URL) to a field. Can somebody please clarify the best approach to this using Profile2 as I cannot seem to find any option for "URL" type in any field. Maybe I'm having a blond moment or just cannot see the wood for the trees, but to save us hours searching online, can somebody advise on the simplest and most obvious solution to users being able to enter their 'website' link (ie: to link to an external URL such as a homesite such as a bandname.com, mybusiness.com).

I am also using Field Collection but presume any created filed type will be similar in setup.

I would envisage the user being able to add such a URL into their profile detial post registration in a similar way to the user DB on drupal.org (ala "Mywebsite").

Thank you.


2 Answers 2


There's no native URL field type in Drupal 7 but the Link module provides one with lots of features

With this module links can be added easily to any content types and profiles and include advanced validating and different ways of storing internal or external links and URLs.

Profile2 profiles are entities so adding a link field to one will be an easy task through the UI.

  • Thank you Clive, looks like Link Module will be the one, (seems I missed that in my drupal.org search) I shall look into it now. Much appreciated.
    – Paul B
    Jul 29, 2012 at 14:48
  • Excellent! For those who require to add a "Users" external website URL with a User Profile, this is the module. Hopefully this will be included in any future D8 core (-:
    – Paul B
    Jul 29, 2012 at 15:09

You can also achieve that using the URL field module. I've used this module in one of my project. You can also add Optional title field to the URL.

Image from the module page. enter image description here

You can also achieve that without using any contributed module.

Add textarea field (instead of text filed) and set Text processing as Filtered text in the field settings. Make sure to select Convert URLs into links option in Text Formats.

That's it. The entered URL will be appeared as link at output.

  • Thanks very much for your tip, I will checkout the Module to see if I can reuse it in my future projects, I'll let you know how I get on and feedback where appropriate. (-:
    – Paul B
    Oct 9, 2015 at 12:19

Your Answer

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

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