织梦dedecms调用单个图集中图片数量的方法修改方法:打开 /include/common.func.php 文件增加如下函数:
function Getimgnum($aid){global $dsql;$imgurls = '';$row =$dsql->getone( "Select imgurls From `dede_addonimages` where aid='$aid' ");$imgurls= $row['imgurls'];preg_match_all("/{dede:img (.*){/dede:img/isU",$imgurls,$wordcount);$count=count($wordcount[1]);return $count;}调用方法:{dede:list pagesize='10'}共[field:id function="Getimgnum(@me)"/]张{/dede:list}