EllisLab text mark
Advanced Search
     
How to set up search
Posted: 29 July 2012 07:49 PM   [ Ignore ]
Joined: 2010-03-08
3 posts

Trying to figure out how search works here - any help would be much appreciated!

The search form I have looks like:

{exp:search:simple_form channel="blog_entry"}
  
<div class="search">
    <
input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">
    <
input type="submit" value="submit" class="submit">
   </
div>
{/exp:search:simple_form} 

When I do a search it displays a URL something like: /search/results/7ba617df0e8ed667e99d9e4a51274f77/ but displays the homepage and not the results. Am I missing a step here?

 
Posted: 30 July 2012 06:21 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-03-17
406 posts

Hi. Sounds like maybe you haven’t created a search/results template group and template yet? Your “results” template should then include your search results tags: http://ellislab.com/expressionengine/user-guide/modules/search/results.html.

Hope that helps.

 Signature 

ExpressionEngine Pro Network Developer
http://www.designkarma.co.uk
EEUK Organisor
http://eeuk.org

 
Posted: 30 July 2012 02:35 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

Hi, goroboto - I’m a bit late, I think, but welcome to our community!

Ian is correct in that you need a results template (and a no results template if you want, though the system will handle that otherwise); however, you do not need a search template group.  You can set the results template path however you want using the result_page parameter.

Thank you for jumping in, Ian!  goroboto - does that help?