简要描述:

  • 获取热门搜索词列表

语法:

{rrz:hotwords days="30" row="5" maxlength="10"}
<!--html内容-->
{/rrz:hotwords}

常用属性:

参数名 类型 默认值 必须 说明
days int 30 时间范围单位(天)
maxlength int 10 热词的最大长度
limit int 5 列表数据量
item string item 循环体变量名
key string key 当前循环是第几个数据(从0开始)
empty string/html 空字符串 无数据时输出的内容
  • 新增 row 属性 row=”5” 等同于 limit=”0,5”

$item 的常用属性:

说明 代码
url 链接地址 {$item.url}
title 链接标题 {$item.title}

HTML示例:

<div class="left">
HOT热门搜索: {rrz:hotwords limit='5'} <a href="{$item.url}">{$item.title}</a> {/rrz:hotwords}
</div>

效果展示:

作者:admin  创建时间:2023-08-10 15:49
 更新时间:2023-09-09 11:33