(Tutorial) Custom Login Pages & Forms
Tutorial : Custom Login Pages & Forms
Step 1 - Setting up custom pages
The following snippit will cover the following arguments:
- user
- user/login
- user/register
- user/password
<?php if ( arg(0) == 'user'&& ( arg(1) == '' || arg(1) == 'login' || arg(1) == 'register' || arg(1) == 'password' ) ){ //custom one column page layout //with blocks not associated with any other pages. include 'page-no_column.tpl.php'; return; } ?>Step 2 - Preparing template.php
Next, before preparing the template.php, we first need to understand what it is we are modifying. The image below is the Drupal's html output when rendering the login form, along with its related display output.
Courtesy : Zqlab.com
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)