I've figured out how to include a view but having difficulty working out how to include my user login block on the front page. Any hints?

Comments

dublin drupaller’s picture

Not quite sure what you mean...

If you go to blocks -> enable the login block and then configure the login block to appear on the 'front_page' only. that should do it for you.

To make the login block appear in the "centre" column, instead of in the left-side/right-side blocks...you can try something along these lines: http://drupal.org/node/64364

Dub

adub’s picture

I probably should have mentioned that I'm using the 'full' setting on front_page to have a completely different layout. I need a snippet to include a block basically. In my template page.tpl.php that would look something like:

if ($sidebar_right != ""){   print $sidebar_right; } 

but this doesn't work for front_page...

dublin drupaller’s picture

2 alternatives:

1/ try thePlacing the contents of a block in any location handbook page.

2/ If you're familiar with template.php and tpl.php layout files, I you could try this alternative method of customising your front page..

HANDBOOK >> php template snippets >>customising full page layouts (scroll down for the front page switcher.

Hope that helps

Dub

adub’s picture

1. doesn't work. I'll try 2. but does that mean I'm hitting a limitation of front_page module? Not being critical, just curious - should I maybe be declaring some global vars or writing wrappers in template.php for these kind of snippets to work properly in front_page?

adub’s picture

oops my bad. 1. does work after all. The block name is 'user' if anyone else is trying this.

dublin drupaller’s picture

Assigned: Unassigned » dublin drupaller
Status: Active » Fixed

glad you got it sorted.

Dub

Anonymous’s picture

Status: Fixed » Closed (fixed)
gorgo’s picture

Status: Closed (fixed) » Active

Not working for me...

Isn't there a way to actually include regions so that when I set up blocks to appear in certain regions they work with the code I place in front_page?

I also tried print $mission; to get the site's mission on the page but that didn't work for me either....

timhilliard’s picture

Status: Active » Closed (fixed)

Closing this as Drupal 4 is no longer supported.