zzzcmszzzphp教程之排序规则

[复制链接]
查看2168 | 回复0 | 2020-9-17 17:36 | 显示全部楼层 |阅读模式
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以后支持
代码语法:
  1. {zzz:content sid=5,6,7 num=6 order=order}
  2. <li> <a href="[content:link]" title="[content:title]"><img src="[content:pic]" width=210 height=160 alt="[content:title]" title="[content:title]" />
  3. <h3>[content:title] </h3> </a></li>
  4. {/zzz:content}
复制代码
这里要讲个重点,zzzphp多条件排序
看下面代码案例就一目了然了
  1. {zzz:list sid={zzz:sid} size=9 order=id  asc=desc}
  2.                 <div class="col-md-5ths col-xs-5ths col-sm-5ths">
  3.                         <div class="cases-img">
  4.                                 <a href="[list:link]"><img class="cases-photo" src="[list:pic]" alt="[list:title]" style="width:554px;height:400px;"></a>
  5.                                 <div class="cases-title">
  6.                                         <p>
  7.                                                 <a href="[list:link]">[list:title]</a>
  8.                                         </p>
  9.                                 </div>
  10.                         </div>
  11.                 </div>
  12.                 {/zzz:list}
复制代码
order=id asc=desc
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-16