amo 发表于 2019-4-11 15:45:37

帝国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
[*]
[*]复制代码
谁有简单方法指导下

gmjiaoyi 发表于 2019-4-11 16:18:59

你这是强迫症,需要治疗

55SHO 发表于 2019-4-11 15:48:15

一个栏目一个表
lol.gif

fuan 发表于 2019-4-11 15:48:56

二次开发了,从SEO角度,这个没有必要

东方星雨 发表于 2019-4-11 16:28:03

晕,估计你只能自己一个HTML文件一个HTML文件的做了,那样肯定能满足你的要求。

阿宇 发表于 2019-4-11 16:29:51

[*]TRUNCATE TABLE phome_enewsclass复制代码

得操作数据库。。

kok 发表于 2019-4-11 22:29:11

同一个模型就是这样。简单的办法就是你把模型复制一个,每一个栏目是一个单独的系统模型。这样就可以了。
但是个人觉得没必要强求这个id。栏目生成设置为时间串就好了
页: [1]
查看完整版本: 帝国CMS问个问题