
- UID
- 1
- 贡献
- 106
- 丢币
- 38688
- 主题
- 4562
- 回帖
- 113
- 注册时间
- 2018-9-25
- 最后登录
- 2023-3-22
|
zzzcms/zzzphp教程之排序规则排序规则标签 | 说明 | 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以后支持 | 代码语法:
- {zzz:content sid=5,6,7 num=6 order=order}
- <li> <a href="[content:link]" title="[content:title]"><img src="[content:pic]" width=210 height=160 alt="[content:title]" title="[content:title]" />
- <h3>[content:title] </h3> </a></li>
- {/zzz:content}
复制代码 这里要讲个重点,zzzphp多条件排序
看下面代码案例就一目了然了
- {zzz:list sid={zzz:sid} size=9 order=id asc=desc}
- <div class="col-md-5ths col-xs-5ths col-sm-5ths">
- <div class="cases-img">
- <a href="[list:link]"><img class="cases-photo" src="[list:pic]" alt="[list:title]" style="width:554px;height:400px;"></a>
- <div class="cases-title">
- <p>
- <a href="[list:link]">[list:title]</a>
- </p>
- </div>
- </div>
- </div>
- {/zzz:list}
复制代码 order=id asc=desc
|
|