Wednesday 21 October 2009 4:28:42 am
Hi I have problem with displaying multilinguage content. I've created site in two languages (Polish and English) and menu structure should be different for each of them so in main location I have few folders created in Polish language and few folders created in English language. Now depending on language version you should only be able to see the folders created in this language but no matter which language you choose all folders are displaying. This is my code:
{let $menuitems=fetch( 'content', 'list',
hash( 'parent_node_id', 2,
'class_filter_type', include,
'class_filter_array', array('folder'),
'only_translated', true()) )}
{section var=menu loop=$menuitems}
{$menu.object.name|wash}<br>
{/section}
pol/site.ini.append.php:
[RegionalSettings]
Locale=pol-PL
ContentObjectLocale=pol-PL
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=pol-PL
TextTranslation=enabled
eng/site.ini.append.php:
[RegionalSettings]
Locale=eng-US
ContentObjectLocale=eng-US
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-US
TextTranslation=enabled
Pls look at my code. Maybe you have some other idea how to create different menu structure for each language version. Thanks in advance.
|