[基础用法]
名称:diyurl
功能:列表页、搜索页排序
语法:
Tag标签主页URL:{eyou:diyurl type='tags' /}
登录URL:{eyou:diyurl type='login' /}
注册URL:{eyou:diyurl type='reg' /}
搜索主页URL:{eyou:diyurl type='sindex' /}

以下是列表的排序功能
<a {eyou:diyurl type='DefaultUrl' class='ey_active' /}>默认</a>
<a {eyou:diyurl type='SalesUrl' class='ey_active' /}>销量</a>
<a {eyou:diyurl type='PriceUrl' class='ey_active' /}>价格</a>
<a {eyou:diyurl type='NewUrl' class='ey_active' /}>新品</a>
<a {eyou:diyurl type='AppraiseUrl' class='ey_active' /}>评价</a>
<a {eyou:diyurl type='CollectionUrl' class='ey_active' /}>收藏</a>
<a {eyou:diyurl type='ClickUrl' class='ey_active' /}>点击量</a>
<a {eyou:diyurl type='DownloadUrl' class='ey_active' /}>下载量</a>
 
参数:
type='' 使用排序则固定值为以上8个,排序效果对应中文
class='' 按自身需要自行定义,无限制
 
底层字段:
请查阅易优Cms官方提供的数据字典,找到表名 ey_archives
 
-------------------------------效果展示--------------------------------
模板调用标准代码
<style type="text/css">
    .ey_active {color: red}
</style>
<a {eyou:diyurl type='DefaultUrl' class='ey_active' /}>默认</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='SalesUrl' class='ey_active' /}>销量</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='PriceUrl' class='ey_active' /}>价格</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='NewUrl' class='ey_active' /}>新品</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='AppraiseUrl' class='ey_active' /}>评价</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='CollectionUrl' class='ey_active' /}>收藏</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='ClickUrl' class='ey_active' /}>点击量</a> &nbsp; &nbsp; &nbsp;
<a {eyou:diyurl type='DownloadUrl' class='ey_active' /}>下载量</a> &nbsp; &nbsp; &nbsp;