特定頁面右邊欄我想從特定的頁面,並在Drupal其隨後所有的網頁中刪除側邊欄7隱藏在Drupal
我的代碼是提below.code是mytheme_preprocess_node(& $變量)功能
if ($variables['type'] === 'project'){
$node = $variables['node'];
if($node->type=='project'){
//print_r($node);
echo $node->type;
unset($page['sidebar_second']);
}