- 全局標簽
- artlist 文章列表
- models 欄目列表
- modelsartlist 頻道循環
- type 指定欄目
- include 引用模板
- arcview 單條文檔
- position 面包屑
- assign 定義變量
- empty 為空判斷
- notempty 不為空判斷
- foreach 循環輸出
- volist 數據循環
- if 條件判斷
- switch 條件判斷
- compare 變量比較
- adv 廣告列表
- load 文件加載
- global 全局變量
- field 字段值
- tags 標簽調用
- searchform 搜索標簽
- 常用函數
- links 友情鏈接
- SQL 數據查詢
- weapp 應用插件
- range 范圍判斷
- for 數據循環
- ad 單條廣告
- attribute 欄目屬性
- user 會員信息
- diyurl 內鏈調用
- php標簽
- hotkeywords 熱門搜索
- notice 站內信
- asklist 問答列表
- citysite 城市站點
- navigation 導航菜單
- static 文件引入
- 會員信息(memberlist)
- 會員注銷標簽使用方法
- 列表標簽
- 內容標簽
- 可視化標簽
- 多語言標簽
diyurl 列表排序
[基礎用法]
標簽:diyurl
描述:列表頁、搜索頁排序
用法:
Tag標簽主頁URL:{eyou:diyurl type='tags' /}
登錄URL:{eyou:diyurl type='login' /}
注冊URL:{eyou:diyurl type='reg' /}
以下是列表的排序功能
Tag標簽主頁URL:{eyou:diyurl type='tags' /}
登錄URL:{eyou:diyurl type='login' /}
注冊URL:{eyou:diyurl type='reg' /}
搜索主頁URL:{eyou:diyurl type='sindex' /}
多城市分站主頁URL:{eyou:diyurl type='citysite' /}
以下是列表的排序功能
<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='' 按自身需要自行定義,無限制
class='' 按自身需要自行定義,無限制
涉及表字段:
請查閱易優數據字典,找到表名 ey_archives
-------------------------------效果展示--------------------------------
模板調用標準代碼
<style type="text/css">
.ey_active {color: red}
</style>
<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>

文檔最后更新時間:2023-10-23 17:35:45
未解決你的問題?請到「問答社區」反饋你遇到的問題