discuz! 這地方怎麼取值

來源:互聯網
上載者:User
discuz! 這地方如何取值
本帖最後由 z2916070581 於 2014-09-28 11:34:00 編輯

先說需求:門戶中導航迴圈,所以要取門戶中每個頻道的連結
我這是這寫的:
  • {$res[$key][catname]}


  • 但點擊欄目後,得出的結果是:


    而列印出來的數組顯示如下欄位情況:

    [14] => Array
    (
    [catid] => 16
    [upid] => 0
    [catname] => 新聞動態
    [articles] => 0
    [allowcomment] => 0
    [displayorder] => 15
    [notinheritedarticle] => 1
    [notinheritedblock] => 1
    [domain] =>
    [url] =>
    [uid] => 1
    [username] => admin
    [dateline] => 1411471404
    [closed] => 1
    [shownav] => 0
    [description] =>
    [seotitle] =>
    [keyword] =>
    [primaltplname] => ./template/sdhq:portal/list_category_xwdt
    [articleprimaltplname] => ./template/sdhq:portal/view
    [disallowpublish] => 0
    [foldername] =>
    [notshowarticlesummay] => 0
    [perpage] => 15
    [maxpages] => 1000
    [noantitheft] => 0
    [lastpublish] => 0
    )
    其中標示紅色欄位的就是頻道的列表模板欄位.我想肯定是這裡出現了問題吧!

    不知這種情況如何處理呢?
    ------解決思路----------------------
    呵呵自己解決了,原來是:portal.php?mod=list&catid=6
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.