经过多天努力,今天终于吧dedecms转换到帝国cms了,我把我使用的语句进行整理,分享给大家!
一、批量导入栏目
insert into phome_enewsclass (classid,bclassid,classname,myorder,classpath,intro,classpagekey) select id,reid,typename,sortrank,typedir,description,keywords from dede_arctype
二、导入文章
insert into phome_ecms_news (id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard) select id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords from dede_archives
三、导入文章来源作者
update `dede_archives` da,phome_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id
四、导入文章body(内容)
insert into phome_ecms_news_data_1 (id,classid,newstext) select aid,typeid,body from dede_addonarticle men
五、其他可能用的语句(参考)
1、替换多余的路径
update phome_enewsclass set classpath = replace(classpath,'{cmspath}/','')
2、批量设置文章属性:
UPDATE phome_enewsclass SET lencord = '25', link_num = '10', classtype= '.html',newspath = '',filename = '.html',hotline = '10',goodline = '10',newline = '10',hotline = '10',modid = '1',checked = '1',tbname = 'news',down_num = '2',online_num = '2',listorderf = 'id',listorder = 'DESC', reorderf= 'newstime',reorder = 'DESC',jstempid = '1',addreinfo = '1',islast = '1',filetype='.html'listtempid = '1',newstempid = '1' filetype='.html',newspath = ''filetype='.html'
六:常见问题:
1、目录权限
2、设置:栏目父子关系