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 “{exp:search:keywords}”</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→</a></strong></p>
{/exp:search:search_results}
,2是通道ID - 這不是給我的結果不同渠道兩種。