logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Creating a region in a Drupal 6 node

22/02/2025, by Anonymous (not verified)
Forums

Hello, I am having trouble creating a region in a node, and I seek your help, Jedi Dru =) I've done a lot of Googling, and the answer is always the same: I need to add the function 

function Name_preprocess_node(&$vars, $hook) {

$vars['region_name'] = theme('blocks', 'region_name');
}

 

Logically, everything should work, but the server loudly complains that I already have a similar function and cannot override it. It is complaining about this function:

 

function W_preprocess_node(&$vars) {

$vars['template_files'] = array();

$vars['template_files'][] = 'node';

 if (drupal_is_front_page()) {

 $vars['template_files'][] = 'node-front';

 }

if ($vars['page']) {

 $vars['template_files'][] = 'node-page';

 $vars['template_files'][] = 'node-'.$vars['node']->type.'-page';

 $vars['template_files'][] = 'node-'.$vars['node']->nid.'-page';

 } else {

 $vars['template_files'][] = 'node-'.$vars['node']->type;

 $vars['template_files'][] = 'node-'.$vars['node']->nid;

 if ($vars['teaser']) {

   $vars['template_files'][] = 'node-'.$vars['node']->type.'-teaser';

   $vars['template_files'][] = 'node-'.$vars['node']->nid.'-teaser';

 }

 }

}

 

What should I do? How can I create a region in the node after all? :)