ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to set up search

July 29, 2012 7:49pm

Subscribe [2]
  • #1 / Jul 29, 2012 7:49pm

    goroboto

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

  • #2 / Jul 30, 2012 6:21am

    Ian Ebden

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

  • #3 / Jul 30, 2012 2:35pm

    Lisa Wess

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

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases