I am thinking of designing users profile page manually. But as a beginner I need your ideas. Can you tell me about what to know all of its variables to design it?
In order to add your own custom template file, you should create a new file named
user-profile.tpl.php in your theme directory.
To see what variables that are available in the template, checkout the default one, that is located under
Have a look at user profile
Drupal 7 core contains Profile, you can add as many fields as you like to it. Once that is done,
- you can use the Panels module, to oevrride the template of user profile page.
- Use context and take the user id as argument from the URL, this should make the user object available to the panels.
- Now you can add you fields as you want.
- You can group them or add them in any layout as per you design using Panels itself.
- Write CSS.
The beauty of this approach is it will avoid writing code all you will have to write is CSS.