网友真实露脸自拍10p,成人国产精品秘?久久久按摩,国产精品久久久久久无码不卡,成人免费区一区二区三区

type 指定欄目

[基礎用法]
標簽:type
描述:獲取指定欄目信息
用法:
{eyou:type typeid='欄目ID' empty='暫時沒有數據'}
<a href="{$field.typeurl}">{$field.typename}</a>
{/eyou:type}
 
屬性:
typeid='' 指定欄目ID,如果沒有指定則獲取當前列表頁的欄目ID
type='self' 表示當前欄目
type='top' 表示當前欄目最頂級的一級欄目
addfields='content' 自定義字段名,多個字段以逗號隔開
empty='' 沒有數據時顯示的文案
id='' 可以任意指定循環里的變量名替代field,假設id='field1',模板調用如:{$field.typename} 變成 {$field1.typename}
涉及標字段:
請查閱易優數據字典,找到表名 ey_arctype


-------------------------------效果展示--------------------------------
調用指定欄目名稱鏈接
模板調用代碼
{eyou:type typeid="1"}
<li> <a href="{$field.typeurl}">{$field.typename}</a> </li>
{/eyou:type}
網站前端顯示效果(css樣式請自行填充)
 
 
【更多示例】
-------------------------------示例1--------------------------------
描述:輸出單頁模型欄目的詳細內容
{eyou:type typeid='10' type='self' addfields='content'}
<a href="{$field.typeurl}">{$field.typename}</a>
<!-- 截取內容250個字符串長度 start -->
<span>{$field.content|html_msubstr=###,0,250}&hellip;</span>
<!-- 截取內容250個字符串長度 end -->
{/eyou:type}
文檔最后更新時間:2023-10-23 17:23:32

文檔
目錄

深色
模式

切換
寬度