Search in multiple languages - Joomla! Forum - community, help and support


hello, developing joomla classifieds component close being done reason if add listing language other english , search in component search form, not show up. if right text. cant life of me figure out why this. doing taking string via post , inserting in query... appreciated...thanks in advance!

by default, searches in multi-lingual websites search selected language. so, if using english language, articles in french not appear in search results if match keywords.

to overcome limitation, need following:

- open file plugins/search/content/content.php
- change following lines from:

code: select all

if ($app->issite() && jlanguagemultilang::isenabled())
{
   $query->where('a.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')')
      ->where('c.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')');
}


to:

code: select all

/*if ($app->issite() && jlanguagemultilang::isenabled())
{
   $query->where('a.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')')
      ->where('c.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')');
}*/


note there twice (so need above twice).

good question way...





Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support