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.

result_page attribute not working for advanced_form search

October 29, 2011 12:59am

Subscribe [2]
  • #1 / Oct 29, 2011 12:59am

    timmaah

    6 posts

    When I use the advanced_form search tag, the result_age attribute seems to be ignored.
    I got it to work once, but on subsequent page reloads, the action of the form always points to the front page..

    {exp:search:advanced_form channel="news" result_page="news/search-results"}
    
    {/exp:search:advanced_form }

    Is transformed into this html:

    <form id="searchform" method="post" action="http://domain.com/"  >...</form>


    What is wrong?

  • #2 / Oct 29, 2011 5:39am

    Mark Bowen

    12637 posts

    Hi timmaah,

    When you say subsequent page loads what do you mean exactly?

    Could you show us the exact code that you are using for your search form please.

    What version of ExpressionEngine are you running here? Is this a brand new install or an update to an existing site?

    Also are you using a .htaccess file to remove the index.php from your URLs? If you are then could you take that out of the equation whilst testing this please.

    Thanks,

    Mark

  • #3 / Oct 29, 2011 10:24am

    timmaah

    6 posts

    I just mean, it worked once. When I first used the search form it sent me to the correct results page (Which was not yet in place). Once I put the results page in place and reloaded the search form page, the problem started and persists.

    I get the issue with exactly what I posted above. (without any search fields or anything, just the opening and closing tag). It does not matter what I put in the result_page attribute, the form action is always the base domain.

    I am running 2.3.1 as a new install locally on my laptop. This issue appears with index.php in the urls (and without).

  • #4 / Oct 29, 2011 11:11am

    timmaah

    6 posts

    EDIT.. I was misunderstanding that the action of the form is supposed to be the root. I keep forgetting that everything works off that one index.php file.

    Even odder is that it works as desired now. Odd..
    Thanks

  • #5 / Oct 29, 2011 6:32pm

    Mark Bowen

    12637 posts

    Hi timmaah,

    So you’re all set now yes?

    If so we’ll close out this thread.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases