织梦cms为{dede:tag}增加[field:global.autoindex/]标签的方法,首先打开/include/taglib/tag.lib.php文件,找到下列代码,(注意备份好原有文件,以免发生错误) $dsql-SetQuery(SELECT * FROM `tagindex` $addsql ORDER BY $orderby L...
实现这个效果有两种 第一种:runphp=yes 织梦自带的runphp参数,在您要统计数目的处插手以下代码: {dede:field.typeid runphp=yes} global $dsql; $row = $dsql-GetOne(select count(*) as dd from dede_archives where typeid =...