How to Build a Login Page for a Drupal Site
While Drupal comes with its own login form, as well as user pages for registration and login, sometimes a separate specially designed login page is desired. Use this page in navigation menus, and reference to it as a link in your Drupal website as well as in emails, social networks and on other websites. The simplest way to create this page is by using Drupal "blocks."
Instructions
-
-
1
Navigate to "Administer," select "Site Configuration," and then "Clean URLs" to ensure that clean URLs are enabled. Clean URLs provide search-engine friendly canonical URL names which means the page title appears in the URL address, rather than an article number, such as "http://www.yoursite.com/my-article-title."
-
2
Create a blank page. Go to "Administer," then select "Content Management," and finally, "Create Content." Most navigation menus also have the "Create Content" option. Select "Page" and "Create" a blank page. Name the blank page "Login" in the title, the URL automatically reflects this name once saved. Save the page and ensure the URL reflects the name "http://www.yoursite.com/login"
-
-
3
Find the Drupal blocks. Go to "Administer," select "Site Building," and then "Blocks." If you are using more than one theme for your layout, the Drupal blocks' administration page indicates all the themes used. Pick the website's current theme.
-
4
Search for the login block in your chosen theme. Your theme may indicate the login is in one of the sidebars, which is usually the case. Configure the login block by selecting the "Configure" link next to it. On the "Configuration" page, scroll to the bottom and select, "Show Only for the Listed Pages." In the text box that follows, type in "Login" without the quotes. Save the configuration.
-
5
Change the placement of the login block to the main content area of your theme. Save the block's admin page. If you navigate to "http://www.yoursite.com/login," you should see a new login page.
-
1
Tips & Warnings
Ensure that in the block's configuration page, you have chosen: "Show on Only the Listed Pages," and not "Show on Every Page Except the Listed Pages" or "Show if the Following PHP Code Returns True," which is the PHP-mode used by experts only.