欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

dedecms普通文章栏目改成自定义内容模型办法

shiping1 的头像

dedecms普通文章栏目改成自定义内容模型办法

分类: dedecms 202人阅读 评论(0) 收藏 举报

在织梦后台-程序-SQl命令工具

INSERT INTO #@_addon18(aid,typeid,redirecturl,userip,body) SELECT aid,typeid,redirecturl,userip,body FROM #@_addonarticle where xpwn_addonarticle.typeid =11;

delete  from #@_addonarticle where typeid =11;
update #@_arctiny set channel=18 where typeid=11;
update #@_archives set channel=18 where typeid=11;
update #@_arctype set channeltype =18 where id =11;

 

注:表名为数据表名称 表名是否对应  #@_addon18 自定内容模型表明  Channl=自定内容模型ID    typeid =栏目Id

            本方法为已有普通文章的栏目修改内容模型的办法,如果是是自定义模型改成另一种自定义模型要注意表的字段 和表明的修改
来自 http://blog.csdn.net/wxincome/article/details/8073491
普通分类: