muban大师 发表于 2021-3-24 10:06:48

织梦列表第一篇文章与其他文章不同样式实现方法

织梦列表第一篇文章与其他文章不同样式效果图:


https://www.adminbuy.cn/uploads/allimg/210324/1-210324100S3339.jpg


        DedeCms织梦列表第一个文章与其他文章不同样式
       
        \include\arc.listview.class.php 找到
       
        $GLOBALS['autoindex',++;
       
       
        在它的下面加入
       
       
               
                       
                               
                                       
$row['autoindex', =$GLOBALS['autoindex',++;
                               
                       
               
       

       
        列表模板调用
       
       
               
                       
                               
                                       
[field:array runphp=yes,
if(@me['autoindex', == 1)
{
@me =
TPL;
}
else
{
@me =
TPL;
}
[/field:array,
页: [1]
查看完整版本: 织梦列表第一篇文章与其他文章不同样式实现方法