dedecms图片列表效果调用

效果如图

代码如下:

<div class="listbox">
  <ul class="e1">
  {dede:list pagesize='6'}
  <li>[field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'height='153' width='220' /></a>"); [/field:array]<a href="[field:arcurl/]"><span class='title'>[field:title/]</span></a>		
					
  </li>
{/dede:list}
			</ul>
		</div><!-- /listbox -->

     

<div class="dede_pages">
    <ul class="pagelist">
        {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
    </ul>
</div><!-- /pages -->

 

实践证明下面的方法也很好

<div class="list">
     <ul class="e2">
          {dede:list row=10 orderby=pubdate type='image.'  titlelen='26' pagesize='4'}
	<li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
           {/dede:list}
     </ul>
</div>
<div class="dede_pages"> 
     <ul class="pagelist"> 
           {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/} 
     </ul> 
</div><!-- /pages --> 

 

posted @ 2013-08-09 09:57  山貓  阅读(348)  评论(0编辑  收藏  举报