php - Drupal 7 theming: region error -
this in theme.info file of drupal theme:
regions[conf_modules] = configurator: modules
i'm using multiple templates different node types. in 1 of them i'd region/block show up. i've put in node--configurator.tpl.php:
<?php print render($page['conf_modules']); ?>
in drupal administration panel have assigned views block region, on node--configurator.tpl.php pages, views block not shown. using render() properly? what's going wrong here? in advance!
in node templates, $page
status variable is:
true if node being displayed page.
however, can add regions page specific content types through page.tpl.php
if like. below should work if placed in page.tpl.php
:
<?php if ($node->type == 'content_type') { print render($page['conf_modules']); } ?>
Comments
Post a Comment