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?
closed as not a real question by kiamlaluno♦ Dec 4 '12 at 13:57
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
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.