Foren / Cotonti / Extensions / i18N - Multilanguage

News on index page

pieter
#21079 20. November 2009, 16:54
I got some help from Kilandor.
You can use more then one category for the news.

See config of the news-plugin.
http://www.yoursite.com/admin.php?m=config&n=edit&o=plug&p=news

Main (first) news category is displayed on main page using {INDEX_NEWS} tag in index.tpl.
Other news categories are displayed on main page using {INDEX_NEWS_CATEGORYCODE} tag in index.tpl. Use news.categorycode.tpl file(s) to customize appearance of each news category.


<!-- IF {PHP.lang} == "nl" -->
{INDEX_NEWS_CATEGORYCODE_NL}
<!-- ENDIF -->  
<!-- IF {PHP.lang} == "en" -->
{INDEX_NEWS_CATEGORYCODE_EN}
<!-- ENDIF -->

For the menu in 2 languages I used this:

			<!-- IF {PHP.lang} == "nl" -->
				{PHP.cfg.freetext1}
			<!-- ENDIF -->  
			<!-- IF {PHP.lang} == "en" -->
				{PHP.cfg.freetext2}
			<!-- ENDIF -->
... can we help you ...