Possible to add custom block location?
mxer269 - May 15, 2009 - 05:07
Hi guys, Is it possible to add a block to any location on your site you want? For example, the current theme I have installed on my site is contented7 for 6.x and I want to add a custom block To the right of my Logo. Currently, the blocks available are not in the area I want to put the block.
Any help? thanks guys!!!

Add custom block
Please follow these steps:
1. Add a region in theme.info file ( for eg. regions[customblock] = customblock ) )
2. Print this region in page.tpl along with the logo ( for eg.
<?phpprint $customblock
?>
3. Please clear your cached data following these steps:
a.) Go to Administrator > Site configuration > Performance
b.) You will find “Clear cached data” at the bottom. Clear cached data.
4. Then assign your block to a particular region.
I'm a expert in web 2.0 and creating user friendly web sites, specializes in Expert Drupal Theming, Xhtml/CSS development.
hi
thanks for the help! but can you describe it in a little more detail for me? how do I add a region in theme.info?
TIA
mxer269
C.P.C. developments
Try this it will help you
If your using the garland theme this is the structure of the theme.info . You can add region like this.
; $Id: garland.info,v 1.5 2007/07/01 23:27:32 goba Exp $
name = Garland
description = Tableless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[customblock] = customblock
; Information added by drupal.org packaging script on 2009-04-30
version = "6.11"
project = "drupal"
datestamp = "1241050838"
If you are using other theme then let me know I will help you.
regards
lokendra
I'm a expert in web 2.0 and creating user friendly web sites, specializes in Expert Drupal Theming, Xhtml/CSS development.