I'm using this module to clone a block, everything it's ok, but i want to print this block in a specific node, so I override the node.tpl.php file with the nid I want to have my block printed out.

Tried several things I found in Internet, etc. but I have not been able to achieve this correctly.

I have made to get the block printed but I get this error:

"Strict warning: Only variables should be passed by reference en include() (línea 120 de /opt/lampp/htdocs/sitio/sites/all/themes/tema/templates/node--10.tpl.php)."

And this is the code I used to get that "working":

print render(block_get_blocks_by_region('cont_rec_a'));

Has anybody made this correctly? How?
Thanks

Comments

intrafusion’s picture

Issue summary: View changes

The error message is clear, try:

$block = 'cont_rec_a';
$content = block_get_blocks_by_region($block);
print render($content);
intrafusion’s picture

Status: Active » Closed (works as designed)