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.

Using EE Search

January 06, 2014 9:17pm

Subscribe [2]
  • #1 / Jan 06, 2014 9:17pm

    Galactus

    2 posts

    Hey all,

    new to EE.  Trying to integrate search into the current site.  Trying to find out how to go about in doing so.

    saw this post: http://ellislab.com/forums/viewthread/80070/#402569 and created this just to test out.  Unfortunately, got “our search did not return any results.” error.

    {exp:search:simple_form search_in="everywhere"}
    <label for=“keywords”>Search:</label>

    <input type=“text” name=“keywords” id=“keywords” value=”” size=“18” maxlength=“100” /></p>
    <input type=“submit” value=“submit” class=“submit” /></p>

    {/exp:search:simple_form}

    Question:  does EE only search channels or can it search pages too?  Since I haven’t got into creating channels just yet.  Since most of the site is just start HTML & Embeds & ee tags.  Brochure style.

    how do I get search results from the pages I know have that keyword.  thanks

  • #2 / Jan 06, 2014 10:47pm

    Rob Allen

    3118 posts

    EE only searches channel entries (and Titles), where custom fields are marked as searchable. So long as “Pages” content is made up from channels + custom fields they are searchable as well.

    So if you have no channels, custom fields or entry data it won’t find anything.

    Lastly you need to specify in the search tag which channels are searcahble and provide a template to display the results, eg

    {exp:search:simple_form search_in=“everywhere” channel="your_channel|another_channel" 
    result_page="news/search"}

     

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

ExpressionEngine News!

#eecms, #events, #releases