2015-01-27 44 views
0

EE2.9.2。簡單的搜索頁面:簡單的搜索結果爲404頁面

{exp:search:simple_form channel="home|about|network|community|pages|people|news" search_in="entries" result_page="search/results" form_id="search_form"} 
    <input type="text" name="keywords" id="search" placeholder="Search" /> 
    {/exp:search:simple_form} 

結果頁:

  <h2>Search results for &ldquo;{exp:search:keywords}&rdquo;</h2> 
       <p>Your search returned {exp:search:total_results} results.</p> 
       {exp:search:search_results} 
       {if count == 1} 
       {/if} 
        <h3><a href="{if page_url}{page_url}{if:else}{auto_path}{/if}">{title}</a> - {channel_id}</h3> 
         <!-- page_url is {page_url} entry_id is {entry_id} --> 
         <p>{excerpt}<br><strong><a href="{if page_url}{page_url}{if:else}{auto_path}{/if}">Read more&rarr;</a></strong></p> 
       {/exp:search:search_results} 

Here's what output looks like

,2是通道ID - 這不是給我的結果不同渠道兩種。

回答

0

沒關係,你們都。這是我的代碼中的錯誤。不要在搜索結果中包裝頻道條目標籤,它不喜歡!