{pboot:sort scode=1}[sort:rows]{/pboot:sort}首页用。用这个需要指定栏目scode的id,适合统计一个总栏目下面多少条内容{pboot:sql sql="SELECT count(*) AS c FROM ay_content"}[sql:c]{/pboot:sql}首页用。SQL语句,统计全站数据{pboot:sql sql="select count(id) as tota
指定顶级栏目,列出下级栏目,包含顶级栏目以前发布了一个不含顶级栏目的,现在发一个包含顶级栏目的代码,其中1是栏目id{dim sonid2:sonid2=sdcms.get_sonid("1")}{sdcms:rs top="10" table="sd_category" where="cateid in ([sonid2]) and ismenu=1"}{$rs[catename]}{/sdcm
SDCMS指定顶级目录,列出下级目录{dim sonid2:sonid2=sdcms.get_sonid("38")}{sdcms:rs top="10" table="sd_category" where="cateid in ([sonid2]) and ismenu=1"}{$rs[catename]}{/sdcms:rs}