帝国CMS问个问题
咨询个问题,帝国cms每个栏目下的文章序号 ,怎么让他每个栏目都从1开始?现在全站文章的ID是总递增。比如
[*]http://localhost/zheli/1.html
[*]http://localhost/zheli/2.html
[*]
[*]http://localhost/women/3.html
[*]http://localhost/women/4.html
[*]
[*]
[*]http://localhost/seo/5.html
[*]http://localhost/seo/6.html复制代码
怎么让每个目录都是从1开始?
类似这样:
[*]http://localhost/zheli/1.html
[*]http://localhost/zheli/2.html
[*]
[*]
[*]http://localhost/women/1.html
[*]http://localhost/women/2.html
[*]
[*]
[*]
[*]http://localhost/seo/1.html
[*]http://localhost/seo/2.html
[*]
[*]复制代码
谁有简单方法指导下 你这是强迫症,需要治疗 一个栏目一个表
lol.gif
二次开发了,从SEO角度,这个没有必要 晕,估计你只能自己一个HTML文件一个HTML文件的做了,那样肯定能满足你的要求。 [*]TRUNCATE TABLE phome_enewsclass复制代码
得操作数据库。。 同一个模型就是这样。简单的办法就是你把模型复制一个,每一个栏目是一个单独的系统模型。这样就可以了。
但是个人觉得没必要强求这个id。栏目生成设置为时间串就好了
页:
[1]