Pretty much what the title says...

Comments

cog.rusty’s picture

No, because node.tpl.php is already inside the content region.

But you can add blocks to the content region.

rbriskie’s picture

You can place regions within the node template. Instructions:

1) Declare your region making sure to replace region_name with the name of your region

regions[region_name] = Region Title

2) Place this in your template.php file, making sure to replace THEMENAME with the name of your theme and region_name with the name of your region

<?php
    function THEMENAME_preprocess_node(&$vars) {
        $vars['region_name'] = theme('blocks', 'region_name');
    }
?>

3) Place this in your node.tpl.php file where you want the region making sure to replace region_name with the name of your region

<?php print $region_name; ?>

Make sure you empty the site's cache and visit the themes page so that Drupal picks up the changes.

Anthony Pero’s picture

This doesn't seem to work in D7. Any idea how to change this code to make it work in D7?

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/