2012-04-14, 00:45:23
Robzilla Wrote:Hello!
I'm using i18n search for listing news on a site called "aktuell". When i try to split the news, so that only the news in the current selected language are displayed, i'm getting german (default language) news in search results too (while /?setlang=en).
The problem is that I18N Search currently uses only the tags/keywords from the default language.
Instead of using a tag for the language, use the language itself:
German news:
Code:
(% searchresults tags:"news" lang:de numWords:-1 order:reverseurl HEADER: %)
(% searchrss title="News RSS Feed" name="news" tags:"news" lang:de numWords:30 %)
English news:
Code:
(% searchresults tags:"news" lang:en numWords:-1 order:reverseurl HEADER: %)
(% searchrss title="News RSS Feed" name="news" tags:"news" lang:en numWords:30 %
Make sure that the default language on the pages view is set correctly.
You need to provide tags only for the default language's pages.