在kingcms更新文章的时候我们会看到下面,文章属性[所属列表] - 显示 推荐 置顶 头条 - 远程抓图 更新列表 更新首页 检查标题是否重复,默认发布文章更新首页是勾选的,但是发布时是没有自动更新列表功能的,如果重新生成网站文章量巨大的时候就会非常慢。
黑酷老师决定修改一下让他默认更新列表,找到后台的发布文章的文件发现查找:“更新列表”翻遍所有文件居然没有找到,后来审元素才发现这几个功能键的区别,然后进行对其修改就顺利解决了。
'artinfo
Il "
"
Il ""&art.lang("label/artinfo")&""
Il "["&art.lang("label/list")&"] - "
if cstr(data(5,0))="1" then checked=" checked=""checked""" else checked=""
Il ""&art.lang("label/show")&" "
if cstr(data(6,0))="1" then checked=" checked=""checked""" else checked=""
Il ""&art.lang("label/commend")&" "
if cstr(data(4,0))="1" then checked=" checked=""checked""" else checked=""
Il ""&art.lang("label/up")&" "
if cstr(data(7,0))="1" then checked=" checked=""checked""" else checked=""
Il ""&art.lang("label/head")&" "
Il " - "
if cstr(form("snapimg"))="1" or cstr(form("snapimg"))="" then checked=" checked=""checked""" else checked=""
Il ""&art.lang("label/snapimg")&" "
if cstr(form("uplist"))="1" then checked=" checked=""checked""" else checked="" ' or cstr(form("uplist"))=""这里默认勾选是被注释掉的。
Il ""&art.lang("label/uplist")&" "
if cstr(form("createhome"))="1" or cstr(form("createhome"))="" then checked=" checked=""checked""" else checked=""
Il ""&king.lang("common/createhome")&" "
if cstr(form("checktitle"))="1" or cstr(form("checktitle"))="" then checked=" checked=""checked""" else checked=""
Il " "&art.lang("label/checktitle")&""
Il "
上面注释的代码 or改到前面就可以做判断就可以勾选了。
"
'arttitle