易优cms统计全站文档数量的方法

易优cms1.5.4以前采用

{eyou:php}

里面写sql查询;

{/eyou:php}

这里不做赘述,相信站长们都升级到了Eyoucms1.5.5了。

对于易优cms1.5.5版本可以使用下面的方法:

{eyou:sql sql =’select count(*) as c from ey_archives where channel=1′}{$field.c}{/eyou:sql}

注意:此方法不适用易优cms1.5.5以前的版本。

简简单单挺好的

联系我们 订单查询