织梦dedecms图集图片每张自定义輸出不同样式
效果
修改教程
include aglibproductimagelis
更多精彩就在: 51免费论文网|www.jxszl.com
t.lib.php找到
foreach($imagesas$row)
{
中间省略...
}
改成
$GLOBALS[autoindex]=I.;foreach($imagesas$row){$row[autoindex]=$GLOBALS[autoindex];foreach($ctp->CTagsas$tagid=>$ctag){if($ctag->GetName()==array){$ctp->Assign($tagid,$row);}else{if(isset($row[$ctag->GetName()])){$ctp->Assign($tagid,$row[$ctag->GetName()]);}}}$revalue.=$ctp->GetResult();$GLOBALS[autoindex]++;}
内容页图集标签
{dede:productimagelist}[field:arrayrunphp=yes]if(@me[autoindex]==I.){@me="{@me[autoindex]}-
{@me[autoindex]}-
{@me[autoindex]}-
";}[/field:array]{/dede:productimagelist}复杂I.点的写法
原文链接:http://www.jxszl.com/biancheng/dedecms/75228.html