分享一个 循环列表 前几条显示不同风格的操作方法: 
 
 
1、此方法使用于arclist,list 2个标签 
2、升级一下公共框架 (今天18:25更新的) 
3、写法: 
 
- {dede:arclist row='6'}
 
 -     <h3>[field:autoindex /]:</h3>
 
 -     [field:array runphp='yes']
 
 -         if(@me['autoindex']==1){
 
 -             @me='<h4 class="news_list_item_title">自定义按条件的模板:<a href="'.@me['arcurl'].'"  title="'.@me['fulltitle'].'">'.@me['fulltitle'].'</a></h4>';
 
 -         }else{
 
 -             @me='<h4 class="news_list_item_title">默认显示:<a href="'.@me['arcurl'].'"  title="'.@me['fulltitle'].'">'.@me['fulltitle'].'</a></h4>';
 
 -         }
 
 -     [/field:array]
 
 -     <div class="news_list_parting_line jz_parting_line"></div>
 
 - {/dede:arclist}
 
 
  复制代码 
 
分页写法 
 
- {dede:list pagesize='10'}
 
 -     <h3>[field:autoindex /]:</h3>
 
 -     [field:array runphp='yes']
 
 -         if(@me['autoindex']==1){
 
 -             @me='<h4 class="news_list_item_title">自定义按条件的模板:<a href="'.@me['arcurl'].'"  title="'.@me['fulltitle'].'">'.@me['fulltitle'].'</a></h4>';
 
 -         }else{
 
 -             @me='<h4 class="news_list_item_title">默认显示:<a href="'.@me['arcurl'].'"  title="'.@me['fulltitle'].'">'.@me['fulltitle'].'</a></h4>';
 
 -         }
 
 -     [/field:array]
 
 -     <div class="news_list_parting_line jz_parting_line"></div>
 
 - {/dede:list}
 
 
  复制代码 
 
说明: 
1、@me['autoindex']==1 表示 有一条显示的风格不同,如果有第3条 可以写成 @me['autoindex']<4 
2、@me=的内容中不要有 单引号',如果有 ,就使用 \' 
3、@me=的内容中标签的写法是:'.@me['arcurl'].',其它以此类推 
 
 |   
 
  
 |