All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Search and Transcribe problem with results page

Grzegorz Dobrzycki 7 May 2013 08:40 problem, active

Hi,
I have a problem with redirection to search results page in Low search.
Here is the site (translated version) - http://raportroczny.lotos.pl/en/
when I type for ex. "board" in search form it is not redirecting to search results page. Instead of this it routes to translated homepage.
My template code for this:
exp:transcribe:no_match url="search/wyniki-wyszukiwania"}
{exp:low_search:form collection="site_pages" search_mode="all" result_page="search/wyniki-wyszukiwania" form_class="search-form" dynamic="no"}
{if transcribe:language_abbreviation !="en"}




{/exp:low_search:form}
{if:else}
{exp:transcribe:no_match segment_1="en"}
{exp:low_search:form collection="site_pages" search_mode="all" result_page="search/search-results" form_class="search-form" dynamic="no" transcribe="disable"}




{/exp:low_search:form}
{/if}

Really have no idea what goes wrong. Could you please help me?
EE version - 2.5.5
low search v. 1.1.0
Original version of site is here: http://raportroczny.lotos.pl . It also uses Ajax search results in form but it's turned off in translated site for resolving problems with form.

Regards,
Greg

P.S.
attching screenshot wit a piece of code I wrote above

Replies

  1. Low 7 May 2013 09:02

    I'm not familiar with Transcribe, so I'm not sure what that would affect LS. I presume the {transcribe:language_abbreviation} is an early parsed variable. If that's the case, you can try this code:

    http://pastie.org/private/oorrmzcwb37...

    Note that I only use 1 instance of the Low Search Form tag, which is populated with some preload replace variables, which are in turn set based on the Transcribe var. Use simple conditionals when using preload replace vars like this. It won't work as soon as you replace that with an {if:else} statement.

    Also, the dynamic and transcribe parameter won't do anything with the Form tag.

    Lastly, I encourage you to update to the latest Low Search version. 1.1.0 is quite dated already.