By zanematthew on
Im building a template from scratch and im getting lost...with the template.php
i created a template.php which contains the following:
<?php
function CMY2_regions() { return array(
'siteheader' => t('siteheader'),
'somefloater' => t('somefloater'),
'top_banner' => t('top banner'),
'content' => t('content'),
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'footer' => t('footer') );
}
?>
after creating this shouldn't I be able to call each function as needed in my page.tpl.php like this?
<?php print $siteheader; ?>
<?php print $left; ?>
<?php print $content; ?>
<?php print $footer ?>
the only one that displays content on the screen is the print $content; so I am assuming that my template.php file isn't being seen or that there is no content in the other functions?
I've read read read and read on the api site but still im lost, please help
Comments
sorry for the confusion my
sorry for the confusion my template.php file contains
Have you placed any blocks in the other regions
The conrtent region is where the pages main content is placed. The rest require you to assign one or blocks to them or they will be empty.