Posted by bahman2216 on January 1, 2013 at 8:36pm
Hi,
I want to make custom HTML home page and using login form.
I built index.htm that run default home page in my site(instead of drupal index.php).
How can use login block in my custom html home page?
Comments
=-=
drupal doesn't use .html pages
you're best bet is to use a page--front.tpl.php file and alter as you see fit.
ok, but important question is
ok, but important question is not about html page.
method of using login block (just login block) is important.
I don't know really how use just login block in somewhere.
I searched all the internet but did not found Appropriate solution.
=-=
you can set the default front page to be the login page in administer -> site information -> default front page
you can set the login block to the content area in administer -> blocks
you can create a custom page--front.tpl.php file, using a copy of page.tpl.php and utilize existing regions or create a new one to contain the login block. The block it self can be set to only show on the front page in administer -> blocks -> edit the config of the block in question.
No need for a index.html
No need for a index.html file, instead you could make the login page the default home page (under configuration >> site information)
I don't want to change
I don't want to change default home page! I just wana using login block that contain username and password and Enter bottom in custom HTML page
The Drupal Way
It's clear what you want. But Drupal isn't set up this way. How can the static .html file you created even connect to the database, let alone present the log in box?
The "Drupal Way" of doing this would be to create a page with a login block in Drupal, which is very easy to do.From there "theme" that page to look like your HTML design.
Trying to access the Drupal login block through some sort of a iFrame in your original HTML would be a hack at best.
The switch from static HTML to using Drupal can be challenging. But don't wory, your current HTML skill set will come in handy.
Good luck.
A list of some of the Drupal sites I have designed and/or developed can be viewed at http://motioncity.com/drupal
---
Your index.htm page is not within your Drupal install, and thus cannot use the features of Drupal. If you want your page to have access to the Drupal login block your page needs to reside within Drupal. I would suggest using a custom page template (as VM suggested as well).