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

2.5.28 to 3.4.1---Download of update package failed - Joomla! Forum - community, help and support

Your host needs to use PHP 5.3.10 or higher to run this vers - Joomla! Forum - community, help and support