修改templets模板文件夹名称的方法:
首先找到系统配置文件/include/common.inc.php
查找:
1 | $cfg_templets_dir = $cfg_cmspath. '/templets' ; |
|
将上面代码中的templets修改为你想要的文件夹名称,例如:muban,之后把根目录下的templets重命名为muban即可。
但是,在修改完以上文件后,会在页面中出现“无法在这个位置找到:****.htm”的错误提示。
解决方法如下:
在include目录下找到dedetag.class.php
把以下代码中templets修改为你自己修改的模板目录名即可解决。
1 | if ( file_exists(DEDEROOT. "/templets/" .$filename) ) |
3 |
$okfile = DEDEROOT. "/templets/" .$filename; |
5 | else if (file_exists(DEDEROOT. '/templets/' .$cfg_df_style. '/' .$filename) ) |
7 |
$okfile = DEDEROOT. '/templets/' .$cfg_df_style. '/' .$filename; |
|