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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                >[info]RGCMS的搜索form采用get/post方式提交,為確保數據安全,請盡量使用post 1、如果需要對結果分頁,推薦使用get方法,**常用于欄目模型內容的搜索** 2、如果忽略分頁且確保數據安全,推薦使用post,**常用于功能模型的內容搜索,比如開發產品防偽查詢、人員信息查詢等功能** >[danger]RGCMS的搜索,可自定義需要搜索的模型(欄目模型或者功能模型)極大方便了系統開發和功能的需求,并根據搜索的模型不同可展現不同的搜索模板,見下面的栗子 ## **HTML代碼** ``` 前臺模板的分配 如果在搜索字段中定義了model = news,那么搜索結果模板默認為search_news.html 以此類推,如果model = product,那么默認搜索結果模板為search_product.html 如果當前模型默認搜索模板不存在,則最終自動選擇search_index.html 作為搜索結果模板 ``` ``` 前臺html頁面搜索代碼 <form action="{$url_search}" method="post"> <input type="text" name="該模型自定義的字段名,如title"> <input type="hidden" name="model" value="news"> <input type="submit" name="" value=""> </form> 說明: 1. model字段為搜索的模型標識,如news或product等 2. 你可以在此基礎上進行選擇性搜索開發 ``` ## **搜索結果頁標簽調用** 搜索結果頁標簽:`{rg:search 參數名稱="參數值"}{/rg:search}` **參數列表** |參數(?為可選參數)|默認值|使用示例|解釋| |---|---|---|---| |?field|title|field="title:like,work:eq"|指定搜索結果中顯示的字段名稱以及搜索方法:like為模糊搜索,eq為精確搜索| |?empty|未搜索到相關內容!|empty="無內容!"|無結果時提示的文本| |?where||where="id > 10"|根據條件進行篩選| |?order|create_time desc|order="create_time asc"|排序規則| |?key|i|key="y"|循環體內的計數變量,如{$i}從1開始計數| |?limit|不限|limit="10"|調用數量| |?site|當前站點ID|site="1"|站點ID| >[danger] **如果模型為欄目模型,調用欄目信息為 {$search.navlist.\*} \*為欄目信息字段** >[success]童鞋們舉栗子了: ``` 前臺搜索結果頁代碼 面包屑可以為:您現在的位置:{rg:location msg="結果"/} > {$searchdata['title']} 結果列表: <ul> {rg:search field="title:like,work:eq" limit="9"} <li><a href="{$search.url}">{$search.title}</a></li> {/rg:search} </ul> {$page|raw} 說明: 1.{$search.*} *代表模型字段 2.{$page|raw} 搜索分頁 ```
                  <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>

                              哎呀哎呀视频在线观看