Jump to content

selector for default language only


ngrmm
 Share

Recommended Posts

Is there a way to search in a multilingual-site only through default language values?
My selector for my other languages work like this:

$selectorEn = "seo_description.data1032~=$q, limit=50, template!='pw_child'";
$selectorFr = "seo_description.data1031~=$q, limit=50, template!='pw_child'";

1032 is english and 1031 ist french and my default language ID is 1021.
However this does not work

$selectorDe = "seo_description.data1021~=$q, limit=50, template!='pw_child'";

and this selector searches all languages

$selectorDe = "seo_description~=$q, limit=50, template!='pw_child'";

What i want is to search and get the results in different languages and show those results in the different languages.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...