国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

18143453325 在線咨詢 在線咨詢
18143453325 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)絡(luò)營銷 > 織夢(dedecms)標簽調(diào)用代碼大全

織夢(dedecms)標簽調(diào)用代碼大全

時間:2022-05-26 02:18:01 | 來源:網(wǎng)絡(luò)營銷

時間:2022-05-26 02:18:01 來源:網(wǎng)絡(luò)營銷

織夢內(nèi)容管理系統(tǒng)(DedeCms)以簡單、實用、開源而聞名,是國內(nèi)知名的PHP開源網(wǎng)站管理系統(tǒng),可以說也是使用用戶最多的PHP類CMS系統(tǒng),DedeCms系統(tǒng)的模板也不是固定的,用戶可以在新建欄目時可以自行選擇欄目模板,官方僅提供最基本的默認模板,即是內(nèi)置系統(tǒng)模型的各個模板,不過站長需要自行修改調(diào)用標簽,所以,今天我就把我曾經(jīng)整理過的一份織夢模版調(diào)用標簽代碼大全在億企邦上跟大家分享一下:

1、網(wǎng)站首頁標題調(diào)用標簽

{dede:global.cfg_webname/}
  或
  {dede:global name='cfg_webname'/}

2、網(wǎng)站首頁描述調(diào)用標簽

<meta name="description" content="{dede:global.cfg_description/}" />

3、網(wǎng)站首頁關(guān)鍵詞調(diào)用標簽

<meta name="keywords" content="{dede:global.cfg_keywords/}" />
  或
  <meta name="keywords" content="{dede:field name='keywords'/}">

4、欄目標題調(diào)用標簽

{dede:field.title/}_{dede:global.cfg_webname/}
  或
  {dede:field.seotitle /}

5、欄目關(guān)鍵詞調(diào)用標簽

<meta name="keywords" content="{dede:field name='keywords'/}" />

6、欄目描述調(diào)用標簽

<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

7、文章標題調(diào)用標簽

{dede:field name="title"/}
  或
  {dede:field.title/}_{dede:global.cfg_webname/}

8、文章關(guān)鍵詞調(diào)用標簽

<meta name="keywords" content="{dede:field.keywords/}" />

9、文章描述調(diào)用標簽

<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />

10、模板路徑調(diào)用標簽

{dede:field name='templeturl'/}

11、調(diào)用外部htm文件

{dede:include file='xxx.htm' ismake='yes'/}

12、調(diào)用頭部head文件標簽

{dede:include filename="head.htm"/}

13、調(diào)用底部footer文件標簽

{dede:include filename="footer.htm"/}

14、調(diào)用導(dǎo)航欄目標簽

<ul>
  <li><a href='{dede:global.cfg_cmsurl/}/'><span>主頁</span></a></li>
  {dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
  <li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
  {/dede:channel}
  </ul>

15、當(dāng)前欄目名稱標簽

{dede:field name='typename'/}

16、欄目介紹調(diào)用標簽

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

17、欄目鏈接調(diào)用標簽

[field:typelink function='str_replace("a ","a class=ulink ",@me)'/]

18、指定調(diào)用欄目標簽

{dede:onetype typeid='ID'}[field:typename /]{/dede:onetype}

19、頻道欄目調(diào)用標簽

{dede:channel type='self'}
  <li><a href='[field:typelink/]'>[field:typename/]</a></li>
  {/dede:channel}

20、欄目列表調(diào)用標簽

{dede:channel type='son' currentstyle="<li><a href='~typelink~' class='thisclass'>~typename~</a></li>"}
  <li><a href='[field:typeurl/]'>[field:typename/]</a></li>
  {/dede:channel}

21、欄目翻頁調(diào)用標簽

{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
  或
  {dede:pagelist listsize='4' listitem='index pre pageno next end '/}

22、列表評論調(diào)用標簽

[field:postnum/]

23、列表時間調(diào)用標簽

[field:pubdate function="GetDateTimeMK(@me)"/]

24、當(dāng)前位置調(diào)用標簽

{dede:field name='position'/}

25、列表文章調(diào)用標簽

{dede:list pagesize='10'}
  <li> [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
  [<b>[field:typelink/]</b>] <a href="[field:arcurl/]" class="title">[field:title/]</a> <span class="info"> <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/] <small>點擊:</small>[field:click/] <small>好評:</small>[field:scores/] </span>
  <p class="intro"> [field:description/]... </p>
  </li>
  {/dede:list}

26、文章內(nèi)容調(diào)用標簽

{dede:field name='body'/}
  或
  {dede:field.body/}

27、文章摘要字數(shù)控制

[field:description function='cn_substr(@me,180)'/]

28、文章導(dǎo)讀調(diào)用標簽

{dede:field.description runphp='yes'}
   if(@me<>'' )@me = '
   <div class="intro">'.@me.'</div>
   ';
  {/dede:field.description}

29、文章時間調(diào)用標簽

{dede:field name='pubdate' function='GetDateMk(@me)'/}

30、文章分頁調(diào)用標簽

{dede:pagebreak/}

31、上一篇、下一篇調(diào)用標簽

{dede:prenext get='pre'/}
  {dede:prenext get='next'/}

32、文章Tag調(diào)用標簽

{dede:tag type='current'/}

33、本月熱點關(guān)鍵字調(diào)用標簽

{dede:hotwords num='5' subday='30'/}

34、文章來源調(diào)用標簽

{dede:field name='source'/}

35、文章作者調(diào)用標簽

{dede:field name='writer' /}
  或
  [field:writer /]

36、責(zé)任編輯調(diào)用標簽

{dede:adminname/}

37、文章收藏標簽調(diào)用

<a href="{dede:field name='phpurl'/}/stow.php?arcID={dede:field name=ID/}">收藏</a>

38、文章推薦標簽調(diào)用

<a href="{dede:field name='phpurl'/}/recommend.php?arcID={dede:field name=ID/}">推薦</a>

39、文章評論標簽調(diào)用

<a href="{dede:field name='phpurl'/}/feedback.php?arcID={dede:field name=ID/}">評論</a>

40、文章打印標簽調(diào)用

<a href="#" onClick="window.print();">打印</a>

41、文章關(guān)閉標簽調(diào)用

<a href="#" onClick="window.close();">關(guān)閉</a>

42、文章頂客次數(shù)標簽

{dede:field name='digg'/} <a href="javascript:Digg('digg',{dede:field name='id'/});">頂一下</a>

43、列表點擊調(diào)用標簽

[field:click/]

44、文章點擊次數(shù)調(diào)用標簽

<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>

45、網(wǎng)站版權(quán)調(diào)用標簽

{dede:global name='cfg_powerby'/}

46、網(wǎng)站備案調(diào)用標簽

{dede:global name='cfg_beian'/}

47、搜索文章調(diào)用標簽

{dede:global name='keyword'/}"的搜索結(jié)果 - {dede:global name='cfg_webname'/} 搜索" {dede:global name='keyword'/}</span>" 的結(jié)果

48、友情鏈接調(diào)用標簽

{dede:flink row='24' linktype=2/}
  或
  {dede:flink/}

49、遞增序列號

[field:global name=autoindex/]

50、COPY頁面內(nèi)容,自動在后面加上網(wǎng)站信息調(diào)用標簽

<script type="text/javascript">
  document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData ("text"); if (text) { text = text + "/r/n本篇文章來源于www.mahaixiang.cn原文鏈接:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
  </script>

億企邦點評:

雖然說織夢內(nèi)容管理系統(tǒng)是比較易學(xué)易用的,但億企邦覺得織夢缺乏靈活性,高度的功能集成造成了織夢靈活性的缺失,所以織夢擴展性并不是很好。還有最重要的一點就是安全性太低,社區(qū)缺乏更好技術(shù)支持和環(huán)境,所以漏洞頻發(fā),站長們要做門戶大站的話,還需謹慎考慮。

關(guān)鍵詞:標簽,調(diào)用

74
73
25
news

版權(quán)所有? 億企邦 1997-2022 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉