Closed (fixed)
Project:
Pixture Reloaded
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2012 at 12:24 UTC
Updated:
8 Feb 2013 at 16:30 UTC
Hi
I want add block region in node.
I try this solutions and don`t work. Please tell me what i make wrong?
In info file create new region block.
In template.php I add:
function pixture_reloaded_preprocess_node(&$vars, $hook) {
$vars['blockname'] = theme('blocks', 'blockname');
}in node.tp.php I add:
<div id="blockname" class="region blockname">
<?php print $blockname; ?>
</div>
Fatal error: Cannot redeclare pixture_reloaded_preprocess_node() (previously declared in /home/domains/public_html/themes/pixture_reloaded/template.php:160) in /home/domains/public_html/themes/pixture_reloaded/template.php on line 194
Comments
Comment #1
alexandreracine commentedMmm, I am sure that modules like pannels or views could do something without code to add this.