假如你模板需要显示本月文章内容数量:
{block:content_total_by_date mid="2" type="month"}
本月文章总数:{$data}
{/block}
mid:内容模型ID,默认为2,表示文章模型
life:缓存时间,单位(秒),一般建议10分钟 life="600"
type参数一览:
今天(today)
昨天(yesterday)
本周(week)
本月(month)
本年(year)
所有(all)
转载请注明:本文《content_total_by_date 按日期统计内容数》链接: http://seo.leidu.net/post-417.html
百度已收录
发表评论: