dede的channel標籤有關問題
來源:互聯網
上載者:User
dede的channel標籤問題
{dede:channel type='top' typeid='1,3,7' row='6' currentstyle="
~typename~"}
[field:typename/]
{/dede:channel}
為什麼typeid沒有作用? 求解決方案,只想要top頂級欄目的制定的typeid,我用的是5.6的。感激不盡!!!
------解決方案--------------------
{dede:channel type='top' typeid='1,3,7' row='6'} currentstyle="
~typename~"
[field:typename/]
{/dede:channel}
------解決方案--------------------
{dede:channel type='top' typeid='1,3,7' row='6' }
總共就三個id 你還要取6行!!!!!!
------解決方案--------------------
直接這樣{dede:channel typeid='1,3,7'}
[field:typename/]
{/dede:channel}
------解決方案--------------------
【Channel 標記】
功能說明:用於擷取欄目列表
適用範圍:封面模板、列表模板、文件範本
(1)基本文法
{dede:channel row='' type=''}
自訂樣式模板(InnerText)
{/dede:channel}
(2)屬性
[1] row='數字' 表示擷取記錄的條數(通用在某級欄目太多的時候使用,預設是 8)
[2] type = top,sun/son,self
type='top' 表示頂級欄目
type='son' 或 'sun' 表示下級欄目
type='self' 表示同級欄目
其中後兩個屬性必須在列表模板中使用。
(3)底層模板變數
ID,typename,typedir,typelink(僅表示欄目的網址)
例:
{dede:channel type='top'}
[field:typename/]
{/dede:channel}
註:在沒有指定typeid的情況下,type標記與模板的環境有關,如,模板產生到欄目一,那麼type='son'就表示欄目一的所有子類
http://www.dedecms.com/archives/templethelp/help/taghelp.htm