模块内容热门/点击/阅读排行

2024-01-26 11:06 小编

一、作用

模块内容热门/点击/阅读排行(支持分页查询)


二、语法

{hits module=模块名称 ....}{/hits}


三、参数介绍

与module标签一致


四、返回变量

与module标签一致


、显示字段

与module标签一致


部分实例

显示新闻news模块最热门的的10条数据

{hits module=news num=10}

标题:{$t.title}

地址:{$t.url}

总点击数:{$t.hits}

本日点击:{$t.day_hits}  

本周点击:{$t.week_hits}  

本月点击:{$t.month_hits}  

年点击量: {$t.year_hits}

更新时间:{$t.updatetime}

自定义更新时间:{dr_date($t._updatetime, 'Y-m-d')}

栏目名称:{dr_cat_value('news', $t.catid, 'name')}

栏目URL:{dr_cat_value('news',$t.catid, 'url')}

{/hits}


Tag: 点击 热门 内容
在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码