织梦dedecms图集中的图片自动添加编号的方法
找到
$ctp->LoadSource($innerText);
在其下边添加
$GLOBALS[autoindex]=0;
找到
$revalue.=
更多精彩就在: 51免费论文网|www.jxszl.com
$ctp->GetResult();
在其下边添加
$GLOBALS[autoindex]++;
在模板页调用时将[field:globalname=autoindex/]赋值给ID,如下所示
{dede:productimagelist}
{/dede:productimagelist}
原文链接:http://www.jxszl.com/biancheng/dedecms/75226.html
热门阅读