参数 | 名称 | 内容 | 说明 | 使用方法 | 必要 |
type= | 模型 | news,product...等模型 | 调用指定模型内容 | type=news | 二选一必要 |
sid= | 分类 | 数字 or 数组 | 当前分类下的内容 | sid=5 | 二选一必要 |
nosid= | 分类 | 数字 | 不包含分类下的内容 | nosid=5 | zzzphp不支持 |
id= | 编号 | 数字 or 数组 | 只显示此ID内容 | id=5 | zzzphp不支持 |
noid= | 编号 | 数字 or 数组 | 不显示此ID内容 | noid=5 | zzzphp不支持 |
num= | 数量 | 数字 | 显示多少个内容 | num=10 | 必要 |
nonum= | 数量 | 数字 | 不显示前面多少个内容 | nonum=3 | |
brand= | 品牌 | 品牌英文 | 仅显示某品牌内容 | brand=xiaomi | |
title= | 标题 | 关键词 | 模糊搜索标题 | title=产品名 | zzzphp不支持 |
order= | 排序 | order,istop... | 见下方排序规则 | order=order | |
time= | 时间范围 | day,week,month | 当天,当周,当月 | time=month |
标签 | 说明 | 备注 |
[content:i] | 计数 | 从1开始 |
[content:j] | 计数 | 从0开始 |
[content:id] | 编号 | |
[content:title] | 标题 | |
[content:link] | 链接 | |
[content:color] | 标题颜色 | |
[content:sname] | 分类名称 | |
[content:senname] | 分类名称 | |
[content:slink] | 分类链接 | |
[content:date] | 日期 | |
[content:tag] | tag标签 | |
[content:istop] | 置顶 | |
[content:isgood] | 推荐 | |
[content:ispic] | 图片新闻 | |
[content:star] | 内网星级 | |
[content:down] | 附件下载链接 | |
[content:downname] | 附件下载名称 | |
[content:downurl] | 附件下载地址 | |
[content:desc] | 描述 | |
[content:pic] | 索引图 | |
[content:pic1] | 图1 | |
[content:pic2] | 图2 | |
[content:spic] | 索引小图 | |
[content:pics][content:picsurl] | 相册图片 | |
[content:picsname] | 相册名称 | |
[content:visits] | 访问量 | |
[content:tag] | tag标签 | |
[content:content] | 内容 | 内容处理 |
[content:info] | 内容 | 保留回车 |
[content:desc] | 内容摘要 | |
[content:target] | 外链新开窗口 | 包含http则输出‘target=blank’ |
[content:z???] | 自定义模型 | ???是模型参数名称 |
标签 | 说明 |
asc=asc | (升序) |
asc=desc | (降序) |
order=order | (以后台填入的order数值排序) |
order=id | (以内容id排序) |
order=visits | (根据浏览量排序) |
order=time | (根据添加时间排序) |
order=istop | (置顶) |
order=isgood | (推荐) |
order=ispic | (含图片) |
order=issell | (在售) |
order=isoffer | (特价) |
order=notop | (不包含置顶))V.1.3.7以后支持 |
order=nogood | (不包含推荐))V.1.3.7以后支持 |
order=nopic | (不包含图片)V.1.3.7以后支持 |
order=nosell | (不包含在售)V.1.3.7以后支持 |
order=nooffer | (不包含特价)V.1.3.7以后支持 |
当[content:link]中包含"http://",[content:target]结果是target="_blank",否则为空。
例如内容中是http://baidu.com ,结果就是 新开窗口,打开百度。
欢迎光临 自丢网 (https://www.zidiu.com/) | Powered by Discuz! X3.5 |