dedecms 標籤用法

dede標籤arclist
2009-07-18 10:44
適用範圍:全局使用
基本語法:
{dede:arclistflag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth=''imgheight='' listtype='' orderby='' keyword='' limit='0,1'}
<a href='[field:arcurl/]'>[field:title/]</a>
{/dede:arclist}

如下 / 後面跟文字 表明註釋

----------------------------------------------------------------------------------------------------------------------------------

最近更新

<div class="latestnews">
      <dl class="tbox">
        <dt><strong>最近更新</strong></dt>
        <dd>
          <ul class="d2 ico2">
{dede:arclist row=6 orderby=pubdate}      
<li><spanclass="date">[field:pubdatefunction="MyDate('m-d',@me)"/]</span><ahref="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
          </ul>
        </dd>
      </dl>
    </div>

{dede:arclist row=6 orderby=pubdate}
                                      / row=6 調用6篇文章

                                      / orderby=pubdate 按時間排序文章列表

                                      / <a><li>這些都是屬於html代碼,標籤內部支持html

                                      / [field:pubdate function="MyDate('m-d',@me)"/] 輸出文章時間

                                      / [field:arcurl/] 文章地址

                                      / [field:title/] 文章標題

{/dede:arclist}    /此標籤結束
----------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------

圖文資訊

    <div class="picnews">
      <dl class="tbox">
        <dt><strong>圖文資訊</strong></dt>
        <dd>
          <ul class="e1">{dede:arclist row=5 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}
         <li><ahref="[field:arcurl/]">[field:image/]<spanclass="title">[field:title/]</span></a></li>{/dede:arclist}
          </ul>
        </dd>
      </dl>
    </div>

{dede:arclist row=5 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}

/ row 調用5篇

/ orderby=pubdate 按更新時間排列文章

/ type='image.' imgwidth='124' imgheight='94' 顯示圖片,後面跟圖片的大小

----------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------

循環調用分類及其文章列表

    <div class="listbox">
{dede:channelartlist}
      <dl class="tbox">
       <dt><strong><a href="{dede:fieldname='typeurl'/}">{dede:fieldname='typename'/}</a></strong><span class="more"><ahref="{dede:fieldname='typeurl'/}">更多...</a& gt;</span></dt>
        <dd>
          <ul class="d1 ico3">
          {dede:arclist titlelen='60' row='8'}
           <li><span class="date">[field:pubdatefunction="MyDate('m-d',@me)"/]</span><a href="[field:arcurl/]">[field:title /]</a></li>
          {/dede:arclist}
          </ul>
        </dd>
      </dl>
{/dede:channelartlist}
    </div>
    <!-- /listbox -->

/ {dede:channelartlist}

/ {/dede:channelartlist}   分類循環開始結束代碼,調用文章列表

/ {dede:field name='typeurl'/} 文章分類URL地址

/ {dede:field name='typename'/} 分類名稱

/ {dede:arclist titlelen='60' row='8'} row=8 調出8篇文章,titlelen=60文章標題長度

/ [field:pubdate function="MyDate('m-d',@me)"/] 文章發佈時間

/ [field:arcurl /] 文章頁面URL / [field:title /] 文章標題 / {/dede:arclist} arclist標籤結束代碼
相關文章
相關標籤/搜索