2013-09-16, 22:27:49
(2013-09-16, 21:50:22)mvlcek Wrote:(2013-09-16, 21:28:53)srsdesign Wrote: I have created a website using Special Pages to create news items. The site itself is in English and Russian, the english side seems to work fine, however, on the russian side news articles show in both english and russian on the home page. So the question is how can I resolve this?
Use (% searchresults ... lang=ru %)
Many thanks for the prompt reply, please excuse my ignorance!
I am using the View tab in the special pages so under the ru tab my code looks like this:
<div id="left_col">
<?php get_page_content(); ?>
</div>
<div id="mid_col">
<?php get_special_field('projectimg'); ?>
</div>
<div id="right_col">
<h3>latest news...</h3>
<?php get_i18n_search_results(['tags' => '_special_news', 'numWords' => 0, 'max' => 10, 'order' => 'reverseurl', 'lang'='ru']); ?>
</div>
I presumed that by adding the lang=ru within this are would work however it doesn't.
Regards