Posted by freshness on January 18, 2011 at 11:33pm
If I bother you because I'am using the wrong forum, please forward me to the right one.
Hi, at first, let me mention that I'am new to Drupal but have experience in web. I've tried to look for a solution to my problem, both via Google and drupal.org. No success.
In Drupal 7, I try to add a new region. The result: Undefined variable: foo even though I have defined foo in the info-file with the regions[foo] = Foo
As I understand it, it should be sufficient to make the variable $foo is available in page.tpl.php? The foo region appears selectable in the Block administrator section.
Thanks for taking the time.
Comments
When adding your foo region
When adding your
fooregion to the tpl, you have to use the following syntax:<?php print render($page['foo']); ?>You cannot simply use the following, like in Drupal 6, because the region is not rendered yet.
<?php print $foo; ?>Cheers
I should point out that in
I should point out that in the future, the Theme development forum would be the ideal place for this type of question.
http://drupal.org/forum/3
Thanks.
Thanks, it did work. Im going for http://drupal.org/forum/3 next time.