打開根目錄下“page.php”找到
$smarty->display('page.dwt');
改為
// 自定義單頁面調用模板
if (file_exists(ROOT_PATH . "theme/$_CFG[site_theme]/" . $page['unique_id'] . '.dwt')) {
$smarty->display($page['unique_id'] . '.dwt');
} else {
$smarty->display('page.dwt');
}
然后在對應的模板目錄中新建格式為“單頁面別名.dwt”的模板文件即可