I created 2 custom regions for the footer - "Footer Left" and "Footer Right." Only "Footer Left" shows up in admin>build>block>list.
Here's the code from my template.php file:
function marinelli_regions() {
return array(
'sidebarleft' => t('Left sidebar'),
'sidebarright' => t('Right sidebar'),
'content' => t('Content'),
'footerleft' => t('Footer left'),
'footerright' => t('Footer right'),
'footer' => t('Footer'),
);
}
Here's the page.tpl.php file (pertinent section):
<div id="footer">
<div class="left"> <?php print $footerleft; ?> </div>
<div class="right"> <?php print $footerright; ?> </div>
<?php print $footer ?>
<?php print $footer_message ?></div>
And here's the info file:
; $Id: marinelli.info,v 1.3 2008/09/18 21:28:29 lioz Exp $
name = Marinelli
description = A fresh 3-column layout for Drupal. Still usable over 4000m!
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = layout.css
stylesheets[all][] = graphics.css
stylesheets[all][] = typography.css
stylesheets[all][] = links.css
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[footerleft] = Footer left
regions [footerright] = Footer right
regions[footer] = Footer
; Information added by drupal.org packaging script on 2008-04-04
version = "6.x-1.7"
core = "6.x"
project = "marinelli"
datestamp = "1207295410"
; Information added by drupal.org packaging script on 2009-08-25
version = "6.x-2.96"
core = "6.x"
project = "marinelli"
datestamp = "1251185475"
Can anyone see something I left out? Any syntax typos? Anything?
Thanks in advance for your help!
Comments
Comment #1
dev-null commentedI'm not a great expert of Drupal but it iseems to me that you missed the base theme information in the .info file :
Comment #2
Rob Carriere commentedIf I understand the code in the .info parser correctly, the space between regions and [footerright] is significant. Try removing that.
Comment #3
shruti.sheth commentedHello,
Please refer to the similar issue, on drupal node http://drupal.org/node/699334#comment-4379534
I hope this helps.
Thanks.
Shruti
Comment #4
oadaeh commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.