1. 程式人生 > >織夢標籤大全

織夢標籤大全

你需要的標籤:<title>{dede:field.title/}_{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field.keywords/}" /> <meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> 另附: DEDE全站通用標籤: 根網址: {dede:global.cfg_cmsurl/}/style/ 標籤裡面的根網址: [field:global.cfg_cmsurl/] 網站域名: {dede:global.cfg_basehost/} 模板路徑: {dede:global.cfg_templets_skin/} 標題: <title>{dede:global.cfg_webname/} </title> <meta name="description" content="{dede:global.cfg_description/}" /> <meta name="keywords" content="{dede:global.cfg_keywords/}" /> 頻道頁標題、關鍵字: <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field name='keywords'/}" /> <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" /> 摘要: [field:description function='cn_substr(@me,110)'/] 日期: [field:pubdate function=MyDate('m-d',@me)/] [field:pubdate function=MyDate('20y-m-d',@me)/] 點選:[field:click/] 呼叫其他模板檔案 {dede:include filename="head.htm"/} 當前位置: {dede:field name='position'/} seo標題 {dede:field.seotitle /} 文章ID: [field:id/] 排序: {dede:arclist row=5 orderby=pubdate titlelen=18} [field:autoindex runphp='yes']@me=$GLOBALS['autoindex']-1;[/field:autoindex] {/dede:arclist} 文章標題: [field:title/] 文章連結地址: [field:arcurl/] 簡略標題: [field:shorttitle/] 文章列表: {dede:arclist typeid='' row='1' titlelen='24' orderby='pubdate'} <a href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a> <li><a href="[field:arcurl/]">[field:title/]</a></li> {/dede:arclist} 文章顯示: <li><a href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a></li> <a href="[field:arcurl/]" title="[field:title/]">[field:title/]</a> 圖片呼叫: {dede:arclist row='1' typeid='' titlelen='24' orderby='pubdate' type='image.'} [field:picname/] {/dede:arclist} {dede:field.litpic/} 商品文章頁: dede圖片呼叫標籤: <img src={dede:field.litpic/}> {dede:field.litpic/} [field:imglink/]=<a href='[field:arcurl/]'><img src='[field:picname/]' border='0' width='imgwidth' height='imgheight'></a> DEDE-列表/欄目頁標籤: 欄目內容: {dede:field.content/} 呼叫分類資訊: {dede:arclist row=5 orderby=pubdate typeid='37.' imgwidth='124' imgheight='96'} {dede:arclistsg orderby=’id’ titlelen=’24′ row=’10′ channelid=’-8′ typeid=’1,2′} {/dede:arclistsg} 欄目列表頁list標籤: {dede:list pagesize='10'} <li> <a href="[field:arcurl/]" class="title">[field:title/]</a> <span class="info"> <p class="intro"> [field:description/]... </p> </li> {/dede:list} 列表分頁/頁碼: {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/} 主目錄: <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> <li><a href='{dede:global.cfg_cmsurl/}/'><span>主頁</span></a></li> {dede:channel type='top' row='10'} <li><a href='[field:typeurl/]'><span>[field:typename/]</span></a></li><li class="line"></li> {/dede:channel} 欄目,目錄呼叫 <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> <UL> {dede:channel typeid=39 type='son' noself='yes'} <LI><a href="[field:typeurl/]">[field:typename/]</a></LI> {/dede:channel} </UL> [field:typelink/] 帶標題的

二級目錄連結 <a href="[field:typeurl/]" title='[field:typename/]'>[field:typename/]</a> {dede:ask row='6' qtype='new' tid='0' titlelen='24'} <dd> <span class="tclass">[<a href='[field:typeurl/]'>[field:tidname/]</a>]</span> <span class="tlink"><a href="[field:url/]">[field:title/]</a></span> </dd> {/dede:ask} 頻道頭條: {dede:arclist flag='h' limit='0,1'} 問答模組標籤 {dede:ask row='3' qtype='ok' tid='0' titlelen='26'} <li> [<a href='[field:typeurl/]'>[field:tidname/]</a>] <a href="[field:url/]">[field:title/]</a> </li> {/dede:ask} DEDE-文章頁標籤: <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field.keywords/}" /> <meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> 文章正文標題 {dede:field.title/} 時間: {dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/} 來源: {dede:field.source/} 作者: {dede:field.writer/} 點選: <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:fieldname='mid'/}" type='text/javascript' language="javascript"></script> 摘要: {dede:field.description runphp='yes'} if(@me<>'' )@me = '<div class="intro">'
[email protected]
'</div>'; {/dede:field.description} 文章正文內容: {dede:field.body/} {dede:field name='title'/} 文章商品圖片: {dede:field.litpic/} {dede:field.litpic/} 商品內頁: <small>商品原價:</small><span>{dede:field.price/}元</span> <small>優惠價格:</small><span class="fc-f60">{dede:field.trueprice/}元</span> <small>品牌:</small><span>{dede:field.brand/}</span> <small>單位:</small><span>{dede:field.units/}</span> <small>上架日期:</small><span>{dede:field.pubdate function="MyDate('y-m-d H:i',@me)"/}</span> <small>人氣:</small><span><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></span> <form id="formcar" name="formcar" method="post" action="{dede:field name='phpurl'/}/posttocar.php"> <input type="hidden" name="id" value="{dede:field.id/}" /> <input type="hidden" name="title" value="{dede:field.title/}" /> <input type="hidden" name="price" value="{dede:field.trueprice/}" /> <input type="hidden" name="units" value="{dede:field.units/}" /> <small>購物車:</small><span><a href="{dede:field name='phpurl'/}/car.php" target="_blank">檢視購物車</a></span> <small>購買:</small><span><button type="submit" name="button" class="btn-2">放入購物車</button></span> DEDE-頻道頁標記: {dede:channelartlist} <dl class="tbox"> <dt><strong><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><span class="more"><a href="{dede:field name='typeurl'/}">更多...</a></span></dt> <dd> <ul class="d1 ico3"> {dede:arclist titlelen='60' row='8'} <li><span class="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><a href="[field:arcurl /]">[field:title /]</a></li> {/dede:arclist} </ul> </dd> </dl> {/dede:channelartlist} 上一篇下一篇 {dede:prenext get='pre'/} {dede:prenext get='next'/} 新增欄位: {dede:arclist typeid='45' row='8' imgwidth='105' imgheight='105' titlelen='16' addfields='trueprice,price' channelid='6' }  市場價¥[field:price /]  優惠價¥[field:trueprice /]  {/dede:arclist} DEDE-其他標籤: 備案: {dede:global.cfg_beian/} 版權: {dede:global.cfg_powerby/}
友情連結
:自帶li標記 {dede:flink row='24'/} 去掉li標籤: {dede:flink linktype='2' row='24'}[field:link /]{/dede:flink} {dede:flink linktype='2' row='24' typeid="1"}[field:link /]|{/dede:flink} A標籤的友情連結: {dede:flink type='textall' row='10'} <a href="[field:url/]" target=_blank class="font-size3 color4">[field:webname/]</a> {/dede:flink} SQL程式碼 直接從資料庫呼叫友情連結{dede:sql sql="Select * From dede_flink where logo = '' order by id desc"}<a target="_blank" href="[field:url/]" title="[field:webname/]">[field:webname/]</a>{/dede:sql} dede標籤呼叫: {dede:tag row='10' getall='1' sort='month'} <li><a href='[field:link/]'>[field:tag /]</a></li> {/dede:tag} 欄目連結標籤: <a href="{dede:type typeid='0' row=1}[field:typelink /]{/dede:type}">檢視本類全部內容</a> 指定呼叫欄目標籤: {dede:onetype typeid='ID'}[field:typename /]{/dede:onetype} 頻道欄目呼叫標籤: {dede:channel type='self' typeid='7'}<li><a href='[field:typelink/]'>[field:typename/]</a></li> {/dede:channel} {dede:channel type='self' typeid='7' row='1'}<a href='[field:typelink/]'>[field:typename/]</a>{/dede:channel} 呼叫一個欄目: {dede:type typeid='8'} <a href="[field:typelink /]">[field:typename /]</a> {/dede:type} 限制行數標籤: {dede:arclist typeid='' row='2' limit='0,1' titlelen='24' orderby='pubdate'} 去掉標題的幻燈片程式碼: <!-----幻燈片-------> <script language='javascript'> linkarr = new Array(); picarr = new Array(); textarr = new Array(); var swf_width=546; var swf_height=126; //文字顏色|文字位置|文字背景顏色|文字背景透明度|按鍵文字顏色|按鍵預設顏色|按鍵當前顏色|自動播放時間|圖片過渡效果|是否顯示按鈕|開啟方式 var configtg='0xffffff||0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|4|3|1|_blank'; var files = ""; var links = ""; var texts = ""; //這裡設定呼叫標記 {dede:arclist flag='f' row='5'} linkarr[[field:global.autoindex/]] = "[field:arcurl/]"; picarr[[field:global.autoindex/]] = "[field:litpic/]"; {/dede:arclist} for(i=1;i<picarr.length;i++){ if(files=="") files = picarr[i]; else files += "|"+picarr[i]; } for(i=1;i<linkarr.length;i++){ if(links=="") links = linkarr[i]; else links += "|"+linkarr[i]; } document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">'); document.write('<param name="movie" value="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf"><param name="quality" value="high">'); document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">'); document.write('<embed src="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_config='+configtg+'&menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); </script> <!-----幻燈片-------> 文章原文地址: <a href="{dede:global.cfg_basehost/}{dede:field name='arcurl'/}">{dede:global.cfg_basehost/}{dede:field name='arcurl'/}</a>