<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 欄目標簽 描述:輸出欄目導航數據 | 額外參數 | 說明 |必須| | --- | --- |--- | | @catid | 為0代表輸出頂級欄目,指定id則輸出該id下的子欄目 |是 | | @order| 排序,例如“id DESC” |否| | @limit| 指定返回數據量 例如limit="5,10",且不得和@num共存 |否 | | @num| 每次返回數據量 例如num="5" |否 | | @where| sql語句的where部分 例如:`where="id in(1,6,8)"`,代表輸出id1,6,8的欄目,@catid參數則需要省略|否| 簡單示例: ``` {yzn module="cms" action="category" catid="0" cache="3600" order="listorder ASC" num="10" return="data"} {volist name="data" id="vo"} ...HTML... {/volist} {/yzn} ``` 完整示例: ``` //輸出頂級欄目和二級欄目10條數據并且緩存3600秒 <div class="nav fr"> <ul class="navlist"> <li {if !isset($catid)}class="hover"{/if}><a href="{:url('cms/index/index')}" title="首頁">首頁</a></li> {yzn module="cms" action="category" catid="0" cache="3600" order="listorder ASC" num="10" return="data"} {volist name="data" id="vo"} <li {if isset($catid) && in_array($catid,explode(',',$vo['arrchildid']))}class='hover'{/if}> <a href="{$vo.url}" title="{$vo.catname}">{$vo.catname}</a> <!--判斷是否有子欄目--> {eq name="vo.child" value="1"} <div class="subnav"> {yzn module="cms" action="category" catid="$vo['id']" cache="3600" order="listorder ASC" num="10" return="data"} {volist name="data" id="vo"} <a href="{$vo.url}" title="{$vo.catname}">{$vo.catname}</a> {/volist} {/yzn} </div> {/eq} </li> {/volist} {/yzn} </ul> </div> ``` | 返回變量 |說明 | | --- | --- | | @id | 欄目列表id | | @url | 欄目url路徑 | | @catdir | 唯一標識 | | @catname| 欄目名稱 | | @image | 欄目圖片 | | @icon | 欄目圖標 | | @description | 欄目描述 | | @child| 是否含有子欄目 0-無 1-有 | | @arrchildid | 所有子欄目 | | @parentid| 上級父欄目 | | @arrparentid | 所有父欄目 | | @modelid | 模型ID | | @type | 欄目類型ID 1-單頁 2-列表 3-外鏈 | | @listorder | 排序 | | @status | 狀態 0-隱藏 1-顯示 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看