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

alexandreracine’s picture

Status: Active » Closed (fixed)

Mmm, I am sure that modules like pannels or views could do something without code to add this.