1.Add code in yourtheme.info
regions[region_name] = Region Name
2.Add funciton in template.php
function THEME_NAME_preprocess_node(&$variables, $hook) {
$variables['
region_name'] = theme('blocks', '
region_name');
}
3.Add code in node.tpl.php
<?php if ($
region_name) { ?><div class="region_name"><?php print $region_name?></div><?php }; ?>
No comments:
Post a Comment