Hi All,
real newbie question here so sorry in advance.

I want the login form to appear in mysite. I assume that drupal creates the html for some sort of default (login form which I plan to style) but for the life of me I cannot. I have the user login option enabled in blocks but I have no reference to it in my page.tpl.php form so what code do i use to get this form appear on the page?

thanks.
Bfitzgerald

Comments

cog.rusty’s picture

You can see the css selectors used for your login block if you logout and view the html source of your page. It will be something like <div id="block-user-0" class="block block-user">

In page.tpl.php Drupal just prints the whole sidebar or region with all your blocks. The template used for each block is by default block.tpl.php.

If you want to override the login block individually with your own template, you can copy it to block-user-0.tpl.php and modify that one. (Generally a block-(region or module)-delta.tpl.php template file.)

bfitzgerald’s picture

thanks cog !

wow your mail really highlights more of what I don't know in drupal! Back to the books for me.... :(

thanks
Bfitzgerald

cog.rusty’s picture