<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 上下篇(數組)標簽 在內容頁,根據當前文檔調取上一篇、下一篇文檔。 ## 示例 獲取當前文檔上一篇 ~~~ {hkcms:prenext type="pre" len="10" dot="...."} <div class="text-primary"><a href="{$item.url}">{$item.title}</a></div> {else /} <div>沒有上一篇了</div> {/hkcms:prenext} ~~~ ## 參數 | 參數名稱 | 可選值 | 默認值 | 是否必填 | 說明 | | --- | --- | --- | --- | --- | | type | pre/next | - | 是 | pre=調取上一篇,next調取下一篇 | | id | - | item | - | 指定變量名,例如id='obj',模板調用如:{$item.action} 變成 {$obj.action} | | field | - | title | - | 這里指定后結合len、dot參數生成 | | len | - | - | - | 限制標題長度 | | dot | - | - | - | 超出的標題尾部拼接字符 | | num | - | - | - | 設置獲取條數,默認是單條 | ## 參數說明 - type,只能填寫pre(上一篇)、next(下一篇) 獲取上一篇數據 ~~~ {hkcms:prenext type="pre"} <a href="{$item.url}">{$item.title}</a> {/hkcms:prenext} ~~~ - id,指定變量,默認是$item,如下改成obj后寫法 ~~~ {hkcms:prenext type="pre" id="obj"} <a href="{$obj.url}">{$obj.title}</a> {/hkcms:prenext} ~~~ - field,這里結合len、dot參數,如下:設置標題長度為10超出的加上“.....” ~~~ {hkcms:prenext type="pre" len="10" dot="....."} <div>{$item.title}</div> {/hkcms:prenext} ~~~ 效果 ``` 演示數據演示數據數據..... ``` `num` 數量屬性,可獲取多條上一篇或下一篇數據 ~~~ {hkcms:prenext type="pre" num="10" len="10" dot="...."} <a href="{$item['url']}">{$item['title']}</a> {else /} <div>沒有上一篇了</div> {/hkcms:prenext} ~~~ ****另外可以增加{else /},來判斷在沒有上一篇時的處理,如下**** ~~~ {hkcms:prenext type="pre"} <div class="text-primary"><a href="{$item['url']}">{$item['title']}</a></div> {else /} <div>沒有上一篇了</div> {/hkcms:prenext} ~~~
                  <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>

                              哎呀哎呀视频在线观看