根据自定义模块中的菜单回调制作了一个简单的谢谢页面(例如/ product/3/thankyou)。内容显示在正常的页面布局罚款,但我希望区域和块显示,他们不。建议?显示返回菜单回调内容时的所有区域
// menu callback
function custom_menu() {
$items = array();
$items['product/%/thankyou'] = array(
'page callback' => 'custom_product_thankyou',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
return $items;
}
// theme function
function custom_theme() {
return array(
'product_review_thankyou' => array(
'variables' => array('node' => NULL),
'template' => 'product_review_thankyou',
),
);
}
// page callback
function custom_product_thankyou() {
$node = node_load(arg(1));
$output = theme('product_review_thankyou', array('node' => $node));
return $output;
}
右半边,但你指出我在正确的方向。在页面上显示_were_块(我不知道是由另一个开发人员设置的块)。但有关问题仍未显示。 – aterchin 2011-12-19 15:50:48