Creating Custom Regions In Drupal Themes
It’s basically a two-step process:
step 1 - define the custom region in your theme’s .info file
All Drupal 6 themes contain a .info file. This is a required element in Drupal 6 themes which allows Drupal to ’see’ your theme.The .info file for your Drupal 6 theme will be located within the root of the theme’s main folder.
Regions are defined in the form:
regions[regionname] = Region name
step 2 - insert some PHP in your theme’s page.tpl.php file wherever you would like the new region to appear
This step is still the same as for custom regions in Drupal 5 themes.Open your theme’s page.tpl.php file and determine where you want the new custom region to appear.
save, and we’re done. Content can now successfully be added to and displayed in our new ‘regionname’ region.
Subscribe to:
Post Comments (Atom)
1 comment:
Nice information about custom region details.
Drupal Development Company
Post a Comment