商城中心的商品參數(shù)標簽
{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}

早期產(chǎn)品中心的產(chǎn)品參數(shù)
{eyou:attribute type='auto' attrid='$eyou.field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}

attribute 商品參數(shù)列表
[基礎(chǔ)用法]
名稱:attribute
功能:獲取當前商品的參數(shù)列表,僅在產(chǎn)品詳情頁、列表頁表用,更多調(diào)用方式在示例里。
語法:
{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}
{$attr.name}:{$attr.value}
{/eyou:attribute}
參數(shù):
aid='' 文檔ID,在arclist標簽、list標簽之內(nèi),以及內(nèi)容頁模板中一般不需要指定aid屬性,系統(tǒng)會自動獲??;
type='' 標簽類型,默認是手動,具體可以參考教程底部的示例;
----type='newattr' 新版商城中心的商品參數(shù)
----type='auto' 早期產(chǎn)品中心的產(chǎn)品參數(shù);
empty='' 沒有數(shù)據(jù)時顯示的文案
mod='' 每隔N行輸出的內(nèi)容
id='' 可以任意指定循環(huán)里的變量名替代field,假設(shè)id='field1',模板調(diào)用如:{$field.title} 變成 {$field1.title}