//文档的默认命名规则 $art_shortname = $cfg_df_ext = '.html'; $cfg_df_namerule = '{typedir}/{Y}/{M}{D}/{aid}'.$cfg_df_ext;2、批量添加分类默认修改,修改文件:dede/templets/catalog_add_quick.htm 查找代码:
<tr> <td height="26" class='bline'>文章命名规则:</td> <td class='bline'><input name="namerule" type="text" id="namerule" value="{typedir}/{Y}{M}{D}/{aid}.html" size="40" class="pubinputs" /> <img src="img/help.gif" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')" /> </td> </tr>二、DEDE 修改默认列表命名规则 1、单独添加分类默认修改,修改文件:dede/templets/catalog_add.htm 查找代码:
<tr> <td height="26">列表命名规则:</td> <td> <input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" class="pubinputs" style="width:250px" /> <img src="img/help.gif" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/> </td> </tr>2、批量添加分类默认修改,修改文件:dede/templets/catalog_add_quick.htm 查找代码:
<tr> <td height="26">列表命名规则:</td> <td><input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="pubinputs" /> <img src="img/help.gif" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')" /> </td> </tr>