holy shit

寺夺喜从天降

开发单独显示sideboxes

创建程序文件customize_sidebox.php,路径为 modules/sideboxes/当前模板目录/customize_sidebox.php
内容格式为:

<?php
/**
* sidebox - customize_sidebox.php
* information
* include(DIR_WS_MODULES . 'sideboxes/' . $template_dir .'/customize_sidebox.php');
*/

$banner_box_status = $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where ( layout_box_status_single=1) and layout_template ='" . $template_dir . "' and layout_box_name='customize_sidebox.php'");

if($banner_box_status->RecordCount() != 0){
//主程序内容
}
?>

后台进入Tools-Layout Boxes Controller,系统会自动读取文件,并在数据库插入相关记录.能过设置Single Column
Status来控制是否在前台显示.

posted @ 2011-07-18 10:24  潜水鱼  阅读(248)  评论(0编辑  收藏  举报

holy shit on foot