采集系统新闻保存路径及扩展名的修改。_风讯Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

现在的采集系统默认的保存路径为

/新闻栏目目录/年-月-日-cs/

俺不喜欢这样的方式,一来和新闻系统目录不一样,二来目录太多后面还加了个-cs

更改方法如下,打开Admin/Collect/MoveNews.asp

找到第135行,或找到如下代码

Array("","SaveNewsPath",-1,"/" & Year(Now) & "-" & Month(Now) & "-" & Day(Now) & "-cs"),_

修改为以下几种方式,直接替换代码即可,下面几种是新闻系统默认自带的几种方式,这样可以和新闻系统匹配,不喜欢的自行更改

1、 格式:[ 栏目英文/2006-6-9 ]
Array("","SaveNewsPath",-1,"/" & year(now) & "-" & month(now) & "-" & day(now)),_

2、 格式:[ 栏目英文/2006/6/9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now) & "/" & day(now)),_

3、 格式:[ 栏目英文/2006/6-9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now) & "-" & day(now)),_

4、 格式:[ 栏目英文/2006-6/9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "-" & month(now) & "/" & day(now)),_

5、 格式:[ 栏目英文/文件名 ]

Array("","SaveNewsPath",-1,""),_

6、 格式:[ 栏目英文/2006/6/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now)),_

7、 格式:[ 栏目英文/2006/69/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now) & day(now)),_

8、 格式:[ 栏目英文/200669/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & month(now) & day(now)),_

假如想更改生成文件的扩展名,找到第138行,或如下代码

Array("","FileExtName",-1,"html"),_

中间的红色的字母html就是扩展名,自己修改吧。

不过最后还是建议风讯官方能将采集系统改一下,可以让采集系统直接读取新闻系统设置的参数,这样既和新闻系统匹配,又好治理。

Array("","SaveNewsPath",-1,"/" & year(now) & "-" & month(now) & "-" & day(now)),_

2、 格式:[ 栏目英文/2006/6/9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now) & "/" & day(now)),_

3、 格式:[ 栏目英文/2006/6-9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "/" & month(now) & "-" & day(now)),_

4、 格式:[ 栏目英文/2006-6/9/ ]

Array("","SaveNewsPath",-1,"/" & year(now) & "-" & month(now) & "/" & day(now)),_

查看更多 风讯cms教程  风讯cms模板

共2页上一页12下一页
来源:模板无忧//所属分类:风讯Cms教程/更新时间:2006-11-12
相关风讯Cms教程