要做到这一点,你将需要编辑每个你想改变 sidebox模块。确切的变化将取决于您究竟想要做什么,无论这些sideboxes是否应该出现其他页面上。让我们假设你的目标是有选择性地抑制一些简易页上显示的sideboxes。
你可以找到在你的目录includes/modules/sideboxes/模块。对每个底部都应该类似这样的代码块:
require($template->get_template_dir('tpl_order_history.php',DIR_WS_TEMPLATE,
$current_page_base,'sideboxes'). '/tpl_order_history.php');
$title = BOX_HEADING_CUSTOMER_ORDERS;
$title_link = false;
require($template->get_template_dir($column_box_default,
DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); 您将需要注意下面的条件语句:
if (!isset($ezpage_id) ||
!in_array($ezpage_id,explode(",",'2,5'))) {
require($template->get_template_dir('tpl_order_history.php',DIR_WS_TEMPLATE,
$current_page_base,'sideboxes'). '/tpl_order_history.php');
$title = BOX_HEADING_CUSTOMER_ORDERS;
$title_link = false;
require($template->get_template_dir($column_box_default,
DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
您可以通过您的EZ-Page,在Admin > Tools
> EZ-Pages 中找到ID,每一页的ID都会显示在第一列。 最后,最重要的是不要忘记在过程文件中保存你的结果。 |