I am curious if it would be possible to add another region or move the Bottom Content region below the content but above the comments. I've tried several tutorials and nothing seems to work. I also cant seem find any documentation on this. Sorry if this is a bother.

Comments

gazwal’s picture

Status: Active » Closed (won't fix)

for adding new region in page.tpl.php :

<?php if ($page['foobar']): ?>
	<div id="foobar">
			<?php print render($page['foobar']); ?>
	</div>
<?php endif; ?>

in .info :

regions[foobar] = Foo Bar Region
brownjed’s picture

Simply "adding new region" wont work because the comments are in the "content" region. I would also like to pull the comments below a biography section so having main content | a new region | and then a region to place comments in would be very nice.

gazwal’s picture

in this case you need to add region in node.tpl.php :

// .info
regions[node_region] = My node region

// template.php themenane_preprocess_node
if ($blocks = block_get_blocks_by_region('node_region')) {
$variables['node_region'] = $blocks;
// To make sure your blocks get rendered within the actual region html, add the following :
$variables['node_region']['#theme_wrappers'][] = 'region';
$variables['node_region']['#region'] = 'node_region';
}

// in node.tpl.php
print render($node_region);