I am attempting to render a menu assigned to a block right next to the body of a custom content type. I am using Drupal 7.
I have a custom region defined within my template
.info file. I would like to render this region and the block assigned to it from within a custom node template ...
node--<my custom content type>.tpl.php
I needed to do this within the custom node template because I needed to break out the individual fields of the content type rather than just using
This is what I was trying to do ...
<div class="content"> <?php print render($content['title']); print render($content['field_banner_image']); print render($content['body']); ?> <div><?php print render($page['MY-CUSTOM-REGION']); ?></div> <div><?php print render($content['body']); ?>div> </div>
However, my menu block does not render and I get the following error ...
Warning: Cannot use a scalar value as an array in include()[PATH TO MY CUSTOM NODE TEMPLATE]
Is it possible to render a region from within a custom node template?