 
Drupal is a free to use Content Management System with the flexibility to customize everything present within it ranging from its internal working to its external looks. However most people are confused on how to do it. This post will deal on one of the aspects of customizing drupal, the login page.
    
    
The Process
You may be knowing that Drupal's login page is situated at /user/login
Make a new php template file named page--user--login.tpl
notice the double dash or it wont work.
Open this file and write this code
The Code
    
The page--user--login.tpl template file provides the login page.
First we print the messages like the password error etc.
The drupal_get_form() is used to get the required form, in this case its the user_login form.
For registration form use the user_register_form
Here drupal_render() is used to render the contents, but be careful to pass only variables or it shows error. So the two lines are used.
To make it look attractive just add the classes and the corresponding css.
More customizations on the login page can be found on my next tutorial. Stay with us.
   
The Process
You may be knowing that Drupal's login page is situated at /user/login
Make a new php template file named page--user--login.tpl
notice the double dash or it wont work.
Open this file and write this code
The Code
<?php print $messages; ?>
<?php $loginform = drupal_get_form('user_login'); ?>
<?php print drupal_render($loginform); ?>The page--user--login.tpl template file provides the login page.
First we print the messages like the password error etc.
The drupal_get_form() is used to get the required form, in this case its the user_login form.
For registration form use the user_register_form
Here drupal_render() is used to render the contents, but be careful to pass only variables or it shows error. So the two lines are used.
To make it look attractive just add the classes and the corresponding css.
More customizations on the login page can be found on my next tutorial. Stay with us.


 
