dedecms標(biāo)簽-織夢cms標(biāo)簽大全_第1頁
dedecms標(biāo)簽-織夢cms標(biāo)簽大全_第2頁
免費(fèi)預(yù)覽已結(jié)束,剩余20頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、/templets/dedeems 標(biāo)簽dede:global.efg_templeturl/templets/dede根目錄調(diào)用標(biāo)簽之dede路徑調(diào)用標(biāo)簽時間:2011-12-11 00:04:04來源: 作者: 點(diǎn)擊:30dede:global.efg_memberurl/會員中心 對應(yīng) /member/dede:global.efg_dataurl/dede:global.efg_basehost/data 目錄 對應(yīng) /data/ 網(wǎng)站地址 :網(wǎng)站名稱網(wǎng)頁編碼GBK2312 或者 UTF-8網(wǎng)站描述網(wǎng)站關(guān)鍵詞列表頁或者文章頁標(biāo)題dede:fieldname=keywords/ dede

2、:fieldname=deseription funetion=html2text(me)/章頁描述dede:field.seotitle /dede:field.eontent/dede:prenext get=pre/dede:prenext get=next/ dede:pagebreak/ 文章分頁dede:pagelist listitem=info,index,end,pre,next,pageno,optionlistsize=5/ 列表分頁dede:field name=position/ 當(dāng)前位置dede:global.efg_templets_skin/5.6 多了一個。這

3、個其實(shí)是 /templets/ 模板目錄dede:global.efg_emsurl/安裝目錄,根目錄對應(yīng) /模板目錄所在路徑對應(yīng)dede:global.efg_webname/dede:global.efg_soft_lang/dede:global.efg_deseription/dede:global.efg_keywords/dede:field.title/列表頁或者文章頁關(guān)鍵詞列表頁或者文欄目 SEO 標(biāo)題欄目內(nèi)容上一篇下一篇/templets/dede:global.efg_templeturl/模板目錄所在路徑對應(yīng)dede 如何調(diào)用欄目名稱2011-05-31 16:31:29

4、 作者:xiongxiaoli 來源: 瀏覽次數(shù):0 網(wǎng)友評論 0 條摘要:北京恒博教育網(wǎng)站培訓(xùn)基地注重實(shí)用教育,我們在 PHP 培訓(xùn)時,要求學(xué)員能獨(dú)立手寫代碼,dedecms 系統(tǒng)本來是很簡單的,以前的學(xué)員畢業(yè)后自己分析一下代碼就可以,但我們考慮到 學(xué)員自己研究,可能要用半 北京恒博教育網(wǎng)站培訓(xùn)基地注重實(shí)用教育,我們在 PHF 培訓(xùn)時,要求學(xué)員能獨(dú)立 手寫代碼,dedecms系統(tǒng)本來是很簡單的,以前的學(xué)員畢業(yè)后自己分析一下代碼 就可以,但我們考慮到學(xué)員自己研究,可能要用半個月的時間,但目前很多的企業(yè) 在使用這套系統(tǒng),我們老師以在實(shí)際工作中的經(jīng)驗和應(yīng)用,在課堂上用上兩三天 的時間,學(xué)員就可以撐

5、握,大大提高學(xué)員的就業(yè)薪水,但我們不建議大家一直停留 在 cms 系統(tǒng)上,最好是研究這些系統(tǒng)的開發(fā)思想,然后開發(fā)屬于自己的 cms 系統(tǒng)今天有人問我,如何在指定的地方調(diào)用 dede 的欄目名稱并讓它鏈接到相應(yīng)的列 表頁面,這里我簡單的列一下調(diào)用欄目的方法,一共有兩種調(diào)用方法1: field:typename /2: field:typelink /二者是相等的,只不過是前者更靈活一點(diǎn)?關(guān)鍵描述調(diào)用標(biāo)簽:vmeta name二keywordsconten t=dede:field n ame二keywords/?模板路徑調(diào)用標(biāo)簽:dede:field name二templeturl/? -?網(wǎng)站

6、標(biāo)題調(diào)用標(biāo)簽:dede:global name二cfg_webname/? -?欄目導(dǎo)航調(diào)用標(biāo)簽: 首頁dede:cha nnel type二top row=8currentstyle=typenamev/a field:type name/v/a /dede:cha nn el? -?指定調(diào)用欄目標(biāo)簽: dede:onetype typeid=IDfield:type name/dede:o netype?頻道欄目調(diào)用標(biāo)簽: dede:channel type=selffield:type name/v/av/li/ded e:cha nn el?友情鏈接調(diào)用標(biāo)簽:dede:flink ro

7、w二24 linktype=2/網(wǎng)站版權(quán)調(diào)用標(biāo)簽:dede:global name=cfg_powerby/?網(wǎng)站備案調(diào)用標(biāo)簽:dede:global name=cfg_beian/當(dāng)前欄目名稱標(biāo)簽:dede:field name二typename/當(dāng)前位置調(diào)用標(biāo)簽:dede:field n ame=positi on/列表文章調(diào)用標(biāo)簽:dede:list pagesize=8/dede:list欄目鏈接調(diào)用標(biāo)簽:field:typeli nkfun cti on二str_replace(a ,a class=uli nk ,me)7作者鏈接調(diào)用標(biāo)簽:field:writer /列表點(diǎn)擊調(diào)用標(biāo)

8、簽:field:click/列表評論調(diào)用標(biāo)簽:field:post nu m/查閱全文調(diào)用標(biāo)簽:查閱全文v/a列表時間調(diào)用標(biāo)簽:field:pubdatefun ctio n二GetDateTimeMK(me)/列表分頁調(diào)用標(biāo)簽:dede:pagelist listsize二4listitem二in dex pre page no n ext end /文早標(biāo)題調(diào)用標(biāo)簽:dede:field n ame二title/?文章來源調(diào)用標(biāo)簽:dede:field name二source/?文章作者調(diào)用標(biāo)簽:dede:field name二writer /? -?文章時間調(diào)用標(biāo)簽:dede:field

9、 name二pubdatefun cti on二GetDateMk(me)/? -?文章 Tag 調(diào)用標(biāo)簽:dede:tag type二current/? -?文章點(diǎn)擊調(diào)用標(biāo)簽:vscript src=dede:fieldn ame=phpurl/co un t.php?aid=dede:fieldn ame二ID/&mid二dede:field n ame=memberid/&view二yeslan guage=javascript? -?文章內(nèi)容調(diào)用標(biāo)簽:dede:field name二body/? -?文章分頁調(diào)用標(biāo)簽:dede:pagebreak/?收藏 ? 推薦? 評

10、論?打印 ?關(guān)閉 ?文章頂客次數(shù)標(biāo)簽:dede:field name二digg/ 頂一下?上篇下篇標(biāo)簽:dede:pre next get=pre/dede:pre nextget= next/?頭條推薦調(diào)用標(biāo)簽:dede:arclist row=1 titlele n=24orderby二pubdate att=2 field:textli nk/field:descripti on/ . /dede:arclist?最新文章調(diào)用標(biāo)簽:dede:arclist row=8 titlelen=24orderby=pubdatefield:textli nk/v/li /dede:arclist

11、?熱關(guān)鍵字調(diào)用標(biāo)簽:dede:hotwords num二5 subday二307?最新圖文調(diào)用標(biāo)簽:dede:arclist row=4 titlele n=20orderby二pubdate type二image. imgwidth二152imgheight二98imgfield:title / v/dd/dede:arclist? -?推薦文檔調(diào)用標(biāo)簽:dede:arclist type二commendtitlelen二40 row二10 field:title / /dede:arclist? -?隨機(jī)推薦調(diào)用標(biāo)簽:dede:arclist type=comme ndtitlele n二

12、26 orderby二ra nd row二10 field:title /dede:arclist? -?熱點(diǎn)文檔調(diào)用標(biāo)簽:dede:arclist orderby二clicktitlelen二40 row二10 field:title /dede:arclist? -?相關(guān)文檔調(diào)用標(biāo)簽:dede:likeart titlelen=24 row二10field:title /v/li /dede:likeart?調(diào)用圖片鏈接標(biāo)記:field:image/?調(diào)用文字鏈接標(biāo)記:field:title/v/afun ctio n二htmlspecialchars(me)7href=field:arc

13、url /field:title /?控制字?jǐn)?shù)描述標(biāo)記:field:descriptionfun ctio n=cn_substr(me, 100)/.?調(diào)用文章 tags 標(biāo)記:dede:tag type二current/?文章關(guān)鍵字與描述:dede:field n ame二keywords/dede:fieldname=description function=html2text(me)/?欄目介紹:dede:field name=descriptionfun ctio n=html2text(me)/?a title=field:title/field:pubdate?調(diào)用外部 htm

14、文件:dede:include file二head.htmismake二yes/?搜索文章調(diào)用標(biāo)簽:dede:global name二keyword/"的搜 索結(jié)果-dede:globaln ame=cfg_web name/搜索 " dede:global n ame=keyword/&qu ot;結(jié)果?遞增序列號:field:global n ame=auto in dex/?列表隔 5 行加一行線:dede:list pagesize二50vLIxa href二field:arcurl / title二field:titlefun cti on

15、二htmlspecialchars(me)/target=_bla nkfield:titlefun cti on二cn _substr(me,48)/v/afield:pubdaterun php=yes$a=.strftime(%m-%d,me).v/fo nt;$b=strftime(%m-%d,me);$n time = time();$day3 = 3600 * 24;if($ntime - me) $day3) me = $a;else me =$b;field:pubdate run php=yesfield:global n ame=auto in dex run php二ye

16、sif(me%5=0)me二;else me=;/field:global/dede:listvDIV class二li ne2 m1 m3v/DIVv/LI? -?最新文章列表“隔行換色”的方法?dede:arclist orderby二pubdate titlele n二26 row二10field:global run php=yes n ame=auto in dex$a=;$b=;if (me%2)=0) me=$a;else me=$b;/field:globalfield:title/v/li/dede:arclist?24 小時內(nèi)更新的文章時間顯示為紅色:$a=vfo nt c

17、olor二red.strftime(%m-%d,me).v/fo nt;$b=strftime(%m-%d,me);$n time = time();$day3 = 3600 * 24;if($ntime - me) docume nt.body. on copy = fun cti on () setTimeout( fun cti on() var text = clipboardData.getData(text); if (text) text = text + rn本篇文章來源于 www.地址.COM 原文鏈接:+location.href; clipboardData.setDat

18、a(text,text); , 100 ) ? -?按時間點(diǎn)擊文章排行榜調(diào)用標(biāo)簽:?按總:dede:arclist row二24 titlelen=24 orderby二click?按月:dede:arclist row二24 titlelen=8 orderby二clicksubday=30?按周:dede:arclist row二24 titlelen=8 orderby=clicksubday=7?在首頁調(diào)用某欄目的 子欄目?dede:channel type二sun typeid二欄目 ID field:typename/v/a/dede:cha nn el或者dede:global

19、name= maplist /? -?搜索表單調(diào)用標(biāo)簽: 智能模糊搜索僅搜索標(biāo)題 ?實(shí)現(xiàn)“文章標(biāo)題-2 級欄目-1 級欄目-網(wǎng)站名”形式dede:field n ame二title/-dede:field n ame二positi onrun php=yes$tc=-; / 分隔符$tw=$GLOBALScfgist_symbol; /調(diào)用位置分隔符me二html2text(me); / 去除 html 標(biāo)簽$tf=split($tw,me); / 分解成數(shù)組for($ta=(count($tf)-2);$ta=1;$ta-) /循環(huán)賦值給 $tk$tk.=trim($tf$ta).$tc;$tk=substr($tk,0,-1);me=$tk; / 賦值給 me /dede:field-dede:global n ame=cfg_webname/? -?調(diào)用縮略圖:? -?發(fā)布的文章顯示紅色日期或加上new 字或 new 小圖片?給近三天(或當(dāng)天)發(fā)布的文章顯示紅色日期或加上new 字或 new小圖片等。都是圍繞 pubdate 做文章,寫擴(kuò)展的。第 2、3 要注意的問題是:如:中不能用 雙引號,否則不行。如果要給當(dāng)天的加,把3600 * 24 * 3 改為 3600 * 24 即1、=紅色的日期field:pubdate runphp=yes$a=.strftime(%m-%

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論