WIXOO >> CMS系统 >> KingCMS ASP 默认路径修改为日期+id

当前位置:CMS系统 >> KingCMS ASP 默认路径修改为日期+id

KingCMS ASP 默认路径修改为日期+id

[来源:来自网络] [作者:不详] [日期:12-07-05] [热度:]
关键字:KingCMS ASP 默认路径修改为日期+id

打开admin/article/index.asp

搜索: data(11,0)=art.lang("common/pinyin")

改为(数字id文件):data(11,0)=king.neworder("kingart","artid")&"."&split(king_ext,".")(1)

改为(数字id文件夹):data(11,0)=king.neworder("kingart","artid")

这里只列出上面两种设置,大家还可以根据自己需要去修改成其它各种方式

 

前篇写了日期修改为id的方法,这里写下日期+id的修改方法:

打开admin/article/index.asp 

搜索: data(11,0)=art.lang("common/pinyin") 

改为(日期+id文件):data(11,0)=year(now)&"_"&month(now)&"_"&day(now)&"_"&king.neworder("kingart","artid")&"."&split(king_ext,".")(1) 

改为(日期+id文件夹):data(11,0)=year(now)&"_"&month(now)&"_"&day(now)&"_"&king.neworder("kingart","artid")

有个朋友需要日期/id.html格式..进行如下替换:

data(11,0)=year(now)&"_"&month(now)&"_"&day(now)&"/"&king.neworder("kingart","artid")&"."&split(king_ext,".")(1)

 

20081217/id.html:formatdate(now,"yyyyMMdd")&"/"&king.neworder("kingart","artid")&"."&split(king_ext,".")(1)
 
2008/12/17/id.html:formatdate(now,2)&"/"&king.neworder("kingart","artid")&"."&split(king_ext,".")(1)
 
自定义模块修改:
20081217/id.html:formatdate(now,"yyyyMMdd")&"/"&king.neworder("king__photo_page","kid")&"."&split(king_ext,".")(1)
 
2008/12/17/id.html:formatdate(now,2)&"/"&king.neworder("king__photo_page","kid")&"."&split(king_ext,".")(1)
 

 

200812/17/id.html:data(11,0)=formatdate(now,"yyyyMM/dd")&"/"&king.neworder("kingart","artid")&"."&split(king_ext,".")(1)


 

转自:http://www.54xiake.cn/article_show.asp?id=157

评论