- 全局標(biāo)簽
- artlist 文章列表
- models 欄目列表
- modelsartlist 頻道循環(huán)
- type 指定欄目
- include 引用模板
- arcview 單條文檔
- position 面包屑
- assign 定義變量
- empty 為空判斷
- notempty 不為空判斷
- foreach 循環(huán)輸出
- volist 數(shù)據(jù)循環(huán)
- if 條件判斷
- switch 條件判斷
- compare 變量比較
- adv 廣告列表
- load 文件加載
- global 全局變量
- field 字段值
- tags 標(biāo)簽調(diào)用
- searchform 搜索標(biāo)簽
- 常用函數(shù)
- links 友情鏈接
- SQL 數(shù)據(jù)查詢
- weapp 應(yīng)用插件
- range 范圍判斷
- for 數(shù)據(jù)循環(huán)
- ad 單條廣告
- attribute 欄目屬性
- user 會(huì)員信息
- diyurl 內(nèi)鏈調(diào)用
- php標(biāo)簽
- hotkeywords 熱門搜索
- notice 站內(nèi)信
- asklist 問(wèn)答列表
- citysite 城市站點(diǎn)
- navigation 導(dǎo)航菜單
- static 文件引入
- 會(huì)員信息(memberlist)
- 會(huì)員注銷標(biāo)簽使用方法
- 列表標(biāo)簽
- 內(nèi)容標(biāo)簽
- arcclick 點(diǎn)擊數(shù)
- guestbookform 欄目留言
- beafter 上下篇
- downcount 下載次數(shù)
- relevarticle 相關(guān)文檔
- 擴(kuò)展標(biāo)簽
- videoplay 視頻播放
- videolist 視頻列表
- memberinfos 文檔關(guān)聯(lián)的會(huì)員信息
- attribute 商品參數(shù)
- specialnode 專題文檔
- collect 文檔收藏
- collectnum 收藏?cái)?shù)
- comment 商品評(píng)價(jià)
- articlepay 文章付費(fèi)
- downloadpay 下載付費(fèi)
- form 自由表單
- sppurchase 商品購(gòu)買
- 商品其它標(biāo)簽欄
- 可視化標(biāo)簽
- 多語(yǔ)言標(biāo)簽
attribute 商品參數(shù)
[基礎(chǔ)用法]
標(biāo)簽:attribute
描述:商品參數(shù)標(biāo)簽,獲取當(dāng)前商品的參數(shù)列表,僅在產(chǎn)品詳情頁(yè)、列表頁(yè)表用,更多調(diào)用方法見(jiàn)示例。
用法:
{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}
屬性:
aid='' 文檔ID,在arclist標(biāo)簽、list標(biāo)簽之內(nèi),以及內(nèi)容頁(yè)模板中一般不需要指定aid屬性,系統(tǒng)會(huì)自動(dòng)獲取;
type='' 標(biāo)簽類型,默認(rèn)是手動(dòng),具體可以參考教程底部的示例;
type='' 標(biāo)簽類型,默認(rèn)是手動(dòng),具體可以參考教程底部的示例;
----type='newattr' 新版商城中心的商品參數(shù)
----type='auto' 早期產(chǎn)品中心的產(chǎn)品參數(shù);
empty='' 沒(méi)有數(shù)據(jù)時(shí)顯示的文案
mod='' 每隔N行輸出的內(nèi)容
id='' 可以任意指定循環(huán)里的變量名替代field,假設(shè)id='field1',模板調(diào)用如:{$field.title} 變成 {$field1.title}
涉及表字段:
無(wú)
-------------------------------效果展示--------------------------------
1,在商品內(nèi)容頁(yè)調(diào)用參數(shù)列表,每次新增屬性,不需要更改模板代碼
模板調(diào)用代碼
網(wǎng)站前端顯示效果(css樣式請(qǐng)自行填充)

2,在商品列表頁(yè)調(diào)用參數(shù)列表,一般嵌套在arclist、list 列表標(biāo)簽里。
模板調(diào)用代碼
{eyou:arclist row='10' id='field'}
網(wǎng)站前端顯示效果(css樣式請(qǐng)自行填充)

-------------------------------效果展示--------------------------------
1,在商品內(nèi)容頁(yè)調(diào)用參數(shù)列表,每次新增屬性,不需要更改模板代碼
模板調(diào)用代碼
{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}

2,在商品列表頁(yè)調(diào)用參數(shù)列表,一般嵌套在arclist、list 列表標(biāo)簽里。
模板調(diào)用代碼
{eyou:arclist row='10' id='field'}
{eyou:attribute type='newattr' attrid='$field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}{/eyou:arclist}

文檔最后更新時(shí)間:2025-03-21 16:46:06
未解決你的問(wèn)題?請(qǐng)到「問(wèn)答社區(qū)」反饋你遇到的問(wèn)題