织梦dedecms给productimagelist图集标签添加数字编号自增递增的方法
打开/include/taglib/productimagelist.lib.php文件
找到:
$ctp->LoadSource($innerText);
在此代码下边添加如下代码:
$GLOBALS[autoindex]=
更多精彩就在: 51免费论文网|www.jxszl.com
0;
找到:
$revalue.=$ctp->GetResult();
在此代码下边添加如下代码:
$GLOBALS[autoindex]++;
调用代码:
[field:globalname=autoindex/]
示例:
{dede:productimagelist}
{/dede:productimagelist}
输出html代码:
原文链接:http://www.jxszl.com/biancheng/dedecms/75549.html
热门阅读