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

Support archive

Low Search language and EE Harbor Transcribe - do they work together?

Sean 21 Apr 2015 15:42 question, complete

I just upgraded Low Search to 4.1.1 and am interested in using the lexicon/language settings to filter search results by language as set by EE Harbor Transcribe.

Is this possible?

Replies

  1. Low 21 Apr 2015 15:47

    Can't really say. Haven't used Transcribe myself.

    But as long as you define a language for a Collection, you can refer to the words in that language by setting the keywords:lang="" parameter, either manually, or by a global var set by Transcribe.

  2. Sean 21 Apr 2015 15:58

    A little more details - one channel has both languages that are chosen via the transcribe tab on the publish page.

    When doing a search through essentially a simple search form is there a way to filter results so that it would only show from the language of the page currently being viewed. There are two variables that Transcribe sets for this that can be used.

    My search tag looks like:

     
    {exp:low_search:form
    form_class="pull-right search-form"
    result_page="{transcribe:language_abbreviation}/search/results"
    required="keywords"
    }

    Go

    {/exp:low_search:form}


    my current results tag is:

     
    {exp:low_search:results query="{segment_3}" limit="10"}
    {if count == 1}
      {/if}

  3. {title}

  4. {if count == total_results}{/if}
    {if no_results}No search results{/if}
    {/exp:low_search:results}


    currently if I search for Agriculture I get both the french and the English entry in results. Ideally, if on an English page when searching only the English entry would come up and the same for French.

  5. Low 21 Apr 2015 16:02

    Again, I'm not a Transcribe expert, so maybe ask their help, too.

    The Results tag basically is a wrapper for the channel:entries tag, so any param you could use on there, you can use on the Results tag, too.

  6. Sean 21 Apr 2015 16:15

    Low - cool - then I think it should work. Will talk to Tom at EE Harbor if need further help.