ADDING A CCK FIELD
THE VIEWS USER INTERFACE
THE VIEWS USER INTERFACE
All drupal try to post daily dose of drupal problems and their soclutions. During the drupal based website development we face many problems and google them to get solutions. The same way we post post our problem with solutions.
regions[header] = Header
regions[highlighted] = Highlighted
regions[help] = Help
regions[content] = Content
regions[sidebar_first] = Left sidebar
regions[sidebar_second] = Right sidebar
regions[footer] = Footerfeatures[] = logo
features[] = name
features[] = slogan
features[] = node_user_picture
features[] = comment_user_picture
features[] = favicon
features[] = main_menu
features[] = secondary_menu
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 }; ?>