首先要導入的肯定是欄目了

成都創(chuàng)新互聯(lián)公司主要從事成都網(wǎng)站建設、成都網(wǎng)站設計、網(wǎng)頁設計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務。立足成都服務姜堰,10年網(wǎng)站建設經(jīng)驗,價格優(yōu)惠、服務專業(yè),歡迎來電咨詢建站服務:18982081108
關于數(shù)據(jù)庫結(jié)構 帝國官方有一個很詳細的手冊 我在之前的文章中有發(fā)布 ,而可憐的dede 只能在一些blog的文章中找到,感謝整理這些資料的博主們,不過還不是很方便,我覺著dede官方應該大改進了
帝國cms 欄目相關數(shù)據(jù)表 mlf_enewsclass (注意表的前綴)
dedecms 欄目相關數(shù)據(jù)表dede_arctype
這里就不對字段進行解釋了 直接上sql了
把帝國數(shù)據(jù)庫中mlf_enewsclass 這張表導入到dede數(shù)據(jù)庫中方便操作
這條數(shù)據(jù)執(zhí)行完了之后后臺欄目已經(jīng)有數(shù)據(jù)了
insert into dede_arctype (id,reid,typename,picname,sortrank,typedir,description,keywords) select classid,bclassid,
classname,classimg,myorder,classpath,intro,classpagekey from mlf_enewsclass
update `dede_arctype` set `issend`=1
update `dede_arctype` set `isdefault`=1
DedeTag Engine Create File False以下幾條sql必須執(zhí)行,要不然會出現(xiàn) 錯誤
-----------------------------------------------------------------------------
update `dede_arctype` set `namerule`="{typedir}/{Y}/{M}{D}/{aid}.html"
update `dede_arctype` set `namerule2`="{typedir}/list_{tid}_{page}.html"
------------------------------------------------------------------------------
update `dede_arctype` set `typedir`=CONCAT('{cmspath}/',typedir)
update `dede_arctype` set `templist`="{style}/list_article.htm"
update `dede_arctype` set `temparticle`="{style}/article_article.htm "
update `dede_arctype` set `tempindex`="{style}/index_article.htm"
update dede_arctype da,mlf_enewsclassadd me set da.content=me.classtext,da.seotitle=me.fpagetitle where da.id=me.classid(注意)
這樣 欄目列表成功轉(zhuǎn)換,后臺可生成
下來開始整合文章
首先 先來分析文章數(shù)據(jù)庫結(jié)構
dede文章相關的有3張數(shù)據(jù)表,分別是dede_archives ,dede_addonarticle,dede_arctiny
帝國文章相關的數(shù)據(jù)表: mlf_ecms_news,mlf_ecms_news_data_1(可能數(shù)據(jù)表有所不同,不過結(jié)構區(qū)別都不大)
導入文章
insert into `dede_archives` (id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords) select id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard from mlf_ecms_news
導纖薯散入文手薯章來源作者
update `dede_archives` da,mlf_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id
導入毀氏文章body(內(nèi)容)
insert into dede_addonarticle (aid,typeid,body) select id,classid,newstext from mlf_ecms_news_data_1 men
現(xiàn)在后臺已經(jīng)有了文章
不過發(fā)現(xiàn)了個問題,分類中顯示的文檔數(shù)量為0
經(jīng)過查資料,摸索 發(fā)現(xiàn)還需要操作一個數(shù)據(jù)表 dede_arctiny后臺統(tǒng)計文檔數(shù)量操作的是這個數(shù)據(jù)表
insert into `dede_arctiny` (id,typeid,channel,senddate,sortrank,mid) select id,typeid,channel,senddate,sortrank,mid from dede_archives
執(zhí)行完畢之后發(fā)現(xiàn)最下級的欄目已經(jīng)正常顯示文檔數(shù)量,但是頂級欄目依然是0,查看相關資料才發(fā)現(xiàn)dede一直是這樣,這也算dede的一個bug吧
ALTER TABLE pre_common_member_field_home ADD stickblogs
給pre_common_member_field_home
表里面添加一陵虧褲個
stickblogs
的字段,
喲類型空戚的自己可以添加 如
varchar(50)類型的
ALTER TABLE pre_common_member_field_home ADD stickblogs varchar(50)
這尺簡個你可以自己改的
GOOD LUCK!~
網(wǎng)頁名稱:帝國cms字段類型 帝國cms字段類型是什么
分享網(wǎng)址:http://chinadenli.net/article21/dspjccd.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護、虛擬主機、靜態(tài)網(wǎng)站、企業(yè)建站、定制網(wǎng)站、品牌網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)