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.

Search Submits to domain name

September 05, 2013 10:36pm

Subscribe [2]
  • #1 / Sep 05, 2013 10:36pm

    tlflow

    36 posts

    So, I think I’m missing something really simple but I can’t seem to get the search results go anywhere besides the site domain. 

    So when I use a template that has a form:

    {exp:search:simple_form channel="subpage_content" form_id="testform" result_page="search/index"}
            
                    <label for="keywords">Search:</label>
    
                    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">
            
            
                    <a href="http://{path=search/index}">Advanced Search</a>
            
            <input type="submit" value="submit" class="submit"></p>
    {/exp:search:simple_form}

    it just goes to domain.com instead of domain.com/search/index.

    I’ve tried doing the following:
    - removing the .htaccess
    - setting the channel search result url to /search/index
    - made sure the search module is installed
    - also made sure the template /search/index is in place.

    Is there anything else I could try?

    For what it’s worth, I tried viewing the search log (under Tools > Logs) and nothing is even recorded there. So, I’m guessing the actual request isn’t even making it to be searched.

    Has anyone else ran into this?

  • #2 / Sep 09, 2013 11:45pm

    DigitalDoctors

    76 posts

    Have you tried adding a no_result_page?

    {exp:search:simple_form channel="subpage_content" form_id="testform" result_page="search/index" no_result_page="search/no_results"}

    It might be that there’s no results to display and you haven’t supplied a no result page which is causing it to load the domain (I’m guessing that the ‘search/no_results’ just gets appended to the domain name when the redirect occurs).

  • #3 / Sep 11, 2013 7:57pm

    tlflow

    36 posts

    Hi there,

    Unfortunately, that didn’t seem to make a difference.  Here’s a question: is there a way to force a result using the browsers address bar? For instance, shouldn’t I be able to “force” a result by typing in domainname.com/search/results/?keywords=abcdefg
    ?

    Thanks for your guidance and advice

  • #4 / Sep 17, 2013 6:59pm

    tlflow

    36 posts

    Lack of responses are starting to make me real nervous.  Does anyone have this working?  Are there alternatives to the stock search module I should look into?

  • #5 / Sep 17, 2013 7:04pm

    DigitalDoctors

    76 posts

    Here’s what I use:

    {exp:search:simple_form channel="channel_to_search" result_page='/search/results' no_result_page='/search/no-results'}
     
      <input type="text" name="keywords" id="keywords" class='inputbox' value="" size="18" maxlength="100">
      <input type="submit" value="Search" class="but" />
     
    {/exp:search:simple_form}

    You need to make sure you have the search template group set up and the results and no-results templates inside that group.

    Other than that, short of logging in and having a look at your setup there’s not much I can do to help you sorry.

  • #6 / Sep 18, 2013 12:34am

    tlflow

    36 posts

    Well, I figured out what the problem is. I currently have an “under construction page” index.html while I’m updating the site.  Obviously, this doesn’t work well with search.  As soon as I renamed it to temporary-index.html, search works. Very interesting.

    Oh well, anwyays, I’m glad everything seems to be working just fine now.  Thanks for the help!

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

ExpressionEngine News!

#eecms, #events, #releases