实现手机端(wap版)静态生成
一 | 添加后台导航栏目链接
1 打开dede/inc/inc_menu.php,在146行下面添加代码:
二 | 更新WAP主页 1.复制文件dede/makehtml_homepage.php,重命名为makehtml_homepagewap.php2.打开makehtml_homepagewap.php,找到最后一行 include DedeInclude( emplets/makehtml_homepage.htm); 修改为 include DedeInclude( emplets/makehtml_homepagewap.htm); 3.复制文件dede/templets/makehtml_homepage.htm,重命名为makehtml_homepagewap.htm 4打开dede/templets/makehtml_homepagewap.htm 修改21行 修改为 4.修改36行,指定生成WAP主页模板 5.修改48行,指定生成WAP主页路径 | 6.修改69~70行,”checked”移到”不保存当前选项”,系统默认是提交保存主页模板和路径数据的 不保存当前选项 保存当前选项 END 三 | 更新WAP栏目页1.复制文件dede/makehtml_list.php,重命名为makehtml_listwap.php 2.打开makehtml_listwap.php,找到最后一行 include DedeInclude( emplets/makehtml_list.htm); 修改为 include DedeInclude( emplets/makehtml_listwap.htm); 3.复制文件dede/templets/makehtml_list.htm 重命名为makehtml_listwap.htm ,修改第10行 修改为 4.复制dede/makehtml_list_action.php 重命名makehtml_listwap_action.php require_once(DEDEINC."/arc.listview.class.php"); 修改为 require_once(DEDEINC."/arc.listwapview.class.php"); 5.复制include/arc.listview.class.php 重命名为arc.listwapview.class.php if(!file_exists($tempfile)){$tempfile = $GLOBALS[cfg_basedir].$GLOBALS[cfg_templets_dir]."/".$GLOBALS[cfg_df_style]."/list_default.htm";}if(!file_exists($tempfile)||!is_file($tempfile)){echo "模板文件不存在,无法解析文档!";exit();}
|