Drupal 6でノードにリージョンを作成する
こんにちは、ノードにリージョンを作成できません、Drupalのジェダイの皆さん助けてください =) たくさんググりましたが、どこも同じ答えで、次の関数を追加する必要があるとのことでした
function 名前_preprocess_node(&$vars, $hook) {
$vars['リージョン名'] = theme('blocks', 'リージョン名');
}
理屈上は動くはずなのですが、追加後サーバーが「似たような関数がすでにあるので上書きできない」と大声で叫びます。次の関数に対して文句を言っています:
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';
}
}
}
どうすればいいでしょうか?ノードにリージョンを作るにはどうすればいいのでしょう :)
- コメントを投稿するにはログインしてください