

{eyou:channelartlist typeid='总栏目id'}
{eyou:channel type="son"}
{$field.typename}
{eyou:assign name="typeid" value="$field.typeid"}
{eyou:sql sql="SELECT count(typeid) AS count FROM ey_archives WHERE typeid= $typeid" cachetime='-1'}
{$field.count}
{/eyou:sql}
{/eyou:channel}
{/eyou:channelartlist}
或者更方便的:
{eyou:channel typeid='总栏目id'}
{$field.typename}-{$field.typeid|GetTotalArc=###}
{/eyou:channel}
想要这个模板?联系我们获取下载方式