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
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.