Monday, November 15, 2010

Drupal 6 - How to place regions/block position

Step 1: Open template .info file and define the region name
regions[region_name] = Region Label

Step 2: In page.tpl.php file write the code
<?php print $region_name; ?>

Step 3: From admin section under
Home » Administer » Site building » Blocks
You will have a look of the all regions/block positions. You can assign your block to your regions.

Step 4: Go to website, you will be able to see the content on your own region/block position.

No comments:

Post a Comment