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标签结束代码

你可能感兴趣的:(PHP,开发,ecshop,二次开发)