首页 > CMS教程 > 织梦CMS    日期:2020-11-05 / 浏览

关键字描述:链接 栏目 解决 " defaultname index.html" 生成

建议大批量生成内容页的时候先使用此方法/

执行如下SQL语句

update `数据库名`.`dede_arctype` set `defaultname`=replace(`defaultname`,"index.html","") ;

生成完内容页以后再执行

update `数据库名`.`dede_arctype` set `defaultname`=replace(`defaultname`,"","index.html") ;

替换回来 否则会无法生成栏目首页

==========================================================================


不熟悉DEDE系统的 最好还是在标签的后面加上 function='str_replace("index.html","",@me)'

如调用当前位置的
{dede:field name='position' /}
就改为
{dede:field name='position' function='str_replace("index.html","",@me)'/}


觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章