DEDECMS5.7標(biāo)簽調(diào)用大全-指尖繁華seo教程網(wǎng)

最新整理的dede5.7標(biāo)簽調(diào)用大全

如果喜歡這篇文章記得關(guān)注哦,想看更多就上指尖繁華seo教程網(wǎng) http://www.bianyouyao.com

近來在用DEDE仿站,常常要用到一些標(biāo)簽的調(diào)用,下面從網(wǎng)上找到了一些調(diào)用標(biāo)簽,跟我們分享一下:

要害描繪調(diào)用標(biāo)簽:

模板途徑調(diào)用標(biāo)簽: {dede:field name='templeturl'/}

網(wǎng)站標(biāo)題調(diào)用標(biāo)簽: {dede:global name='cfg_webname'/}

節(jié)目導(dǎo)航調(diào)用標(biāo)簽:主頁

{dede:channel type='top' row='8' currentstyle="

~typename~

"}

[field:typename/]

{/dede:channel}

指定調(diào)用節(jié)目標(biāo)簽: {dede:onetype typeid='ID'}[field:typename /]{/dede:onetype}

頻道節(jié)目調(diào)用標(biāo)簽: {dede:channel type='self'}

[field:typename/]

{/dede:channel}

友情連接調(diào)用標(biāo)簽: {dede:flink row='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)時(shí)節(jié)目稱號(hào)標(biāo)簽: {dede:field name='typename'/}

當(dāng)時(shí)位置調(diào)用標(biāo)簽: {dede:field name='position'/}

列表文章調(diào)用標(biāo)簽: {dede:list pagesize='8'}{/dede:list}

節(jié)目連接調(diào)用標(biāo)簽: [field:typelink function='str_replace("a ","a class=ulink ",@me)'/]

作者連接調(diào)用標(biāo)簽: [field:writer /]

列表點(diǎn)擊調(diào)用標(biāo)簽: [field:click/]

列表談?wù)撜{(diào)用標(biāo)簽: [field:postnum/]

查閱全文調(diào)用標(biāo)簽:查閱全文...

列表時(shí)刻調(diào)用標(biāo)簽: [field:pubdate function="GetDateTimeMK(@me)"/]

列表分頁調(diào)用標(biāo)簽: {dede:pagelist listsize='4' listitem='index pre pageno next end '/}

文章標(biāo)題調(diào)用標(biāo)簽: {dede:field name="title"/}

文章來歷調(diào)用標(biāo)簽: {dede:field name='source'/}

文章作者調(diào)用標(biāo)簽: {dede:field name='writer' /}

文章時(shí)刻調(diào)用標(biāo)簽: {dede:field name='pubdate' function='GetDateMk(@me)'/}

文章Tag調(diào)用標(biāo)簽: {dede:tag type='current'/}

文章點(diǎn)擊調(diào)用標(biāo)簽:

文章內(nèi)容調(diào)用標(biāo)簽: {dede:field name='body'/}

文章分頁調(diào)用標(biāo)簽: {dede:pagebreak/}

文章頂客次數(shù)標(biāo)簽: {dede:field name='digg'/}

上一篇下一篇標(biāo)簽: {dede:prenext get='pre'/}{dede:prenext get='next'/}

補(bǔ)充:約束上一篇下一篇的長度:翻開:include/arc.archives.class.php 查找以下代碼: $this->PreNext['pre'] = "上一篇:{$preRow['title']}"; 在這一段代碼的前一段,也即是上面增加以下代碼: $preRow['title']=cn_substr($preRow['title'],40); 字符,40 表明字符數(shù),你的梅花請(qǐng)求自行修正數(shù)字. //約束上下篇文章標(biāo)題的 約束上一篇下一篇的文 章標(biāo)題長度字符 修正好了上一篇的標(biāo)題字符的長度,現(xiàn)在相同的操縱修正下一篇的標(biāo)題字符的長度.找到以 下代碼: $this->PreNext['next'] = "下一篇:{$nextRow['title']}"; 在這一段代碼的上面增加以下以下代碼: $preRow['title']=cn_substr($preRow['title'],40); 字符,40 表明字符數(shù),你的梅花請(qǐng)求自行修正數(shù)字. //約束上下篇文章標(biāo)題的 這樣就完成了修正了.

頭條引薦調(diào)用標(biāo)簽: {dede:arclist row=1 titlelen=24 orderby=pubdate att=2}[field:textlink/]

[field:description/]……?{/dede:arclist}

最新文章調(diào)用標(biāo)簽: {dede:arclist row=8 titlelen=24 orderby=pubdate}

[field:textlink/]

{/dede:arclist}

熱要害字調(diào)用標(biāo)簽: {dede:hotwords num='5' subday='30'/}

最新圖文調(diào)用標(biāo)簽: {dede:arclist row=4 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'}

[field:title /]{/dede:arclist}

引薦文檔調(diào)用標(biāo)簽: {dede:arclist type='commend' titlelen='40' row='10'}

[field:title /]

{/dede:arclist}

隨機(jī)引薦調(diào)用標(biāo)簽: {dede:arclist type='commend' titlelen='26' orderby='rand' row='10'}

[field:title /]

{/dede:arclist}

熱點(diǎn)文檔調(diào)用標(biāo)簽: {dede:arclist orderby='click' titlelen='40' row='10'}

[field:title /]

{/dede:arclist}

相關(guān)文檔調(diào)用標(biāo)簽: {dede:likeart titlelen='24' row='10'}

[field:title /]

{/dede:likeart}

調(diào)用圖片連接符號(hào):

[field:image/]

調(diào)用文字連接符號(hào):[field:title/]

[field:title /]

操控字?jǐn)?shù)描繪符號(hào): [field:description function="cn_substr(@me,100)"/]...

調(diào)用文章tags符號(hào): {dede:tag type='current'/}

文章要害字與描繪: {dede:field name='keywords'/}

{dede:field name='description' function='html2text(@me)'/}

節(jié)目介紹:{dede:field name='description' function='html2text(@me)'/}

調(diào)用外部htm文件:{dede:include file='head.htm' ismake='yes'/}

查找文章調(diào)用標(biāo)簽:{dede:global name='keyword'/}"的查找成果 - {dede:global name='cfg_webname'/} 查找" {dede:global name='keyword'/}" 的成果

遞增序列號(hào): [field:global name=autoindex/]

列表隔5行加一行線:

{dede:list pagesize='50'}

  target=_blank>[field:title function="cn_substr(@me,48)"/][field:pubdate runphp='yes']

$a="".strftime('%m-%d',@me)."";

$b=strftime('%m-%d',@me);

$ntime = time();

$day3 = 3600 * 24;

if(($ntime - @me) < $day3) @me = $a;

else @me =$b;

[/field:pubdate]

[field:global name=autoindex runphp="yes"]

if(@me%5==0)@me="

";

else @me="";

[/field:global]

{/dede:list}

最新 文章列表 “隔行換色” 的辦法

{dede:arclist orderby=pubdate titlelen='26' row='10'}

[field:global runphp='yes' name=autoindex]

$a="

";

$b="

";

if ((@me%2)==0) @me=$a;

else @me=$b;

[/field:global]

[field:title/]

{/dede:arclist}

24小時(shí)內(nèi)更新的文章時(shí)刻顯現(xiàn)為赤色:

[field:pubdate runphp='yes']

$a="".strftime('%m-%d',@me)."";

$b=strftime('%m-%d',@me);

$ntime = time();

$day3 = 3600 * 24;

if(($ntime - @me) < $day3) @me = $a;

else @me =$b;

[/field:pubdate]

COPY頁面內(nèi)容,自動(dòng)在后面加上網(wǎng)站信息,利于SEO

按時(shí)刻點(diǎn)擊文章排行榜調(diào)用標(biāo)簽:

按總: {dede:arclist row='24' titlelen=24 orderby=click}

按月: {dede:arclist row='24' titlelen=8 orderby=click subday=30}

按周: {dede:arclist row='24' titlelen=8 orderby=click subday=7}

在主頁調(diào)用某節(jié)目的子節(jié)目

{dede:channel type=’sun’ typeid=’節(jié)目ID’}

[field:typename/]

{/dede:channel}

或許

{dede:global name=’maplist’/}

查找表單調(diào)用標(biāo)簽:

智能含糊查找

僅查找標(biāo)題

完成“文章標(biāo)題-2級(jí)節(jié)目-1級(jí)節(jié)目-網(wǎng)站名”形式

{dede:field name='title'/}-{dede:field name='position' runphp='yes'}

$tc="-"; //分隔符

$tw=$GLOBALS['cfg_list_symbol']; //調(diào)用位置分隔符

[email?protected]=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);

[email?protected]=$tk;[email?protected]

如果喜歡這篇文章記得關(guān)注哦,想看更多就上指尖繁華seo教程網(wǎng) http://www.bianyouyao.com?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容