Forums / Install & configuration / Only show translated content on Multilingual site
André R.
Wednesday 22 March 2006 2:16:04 am
Trying out the Multilingual cabilities of ez I dicovered that the english site(eng-GB) also displayes content that is only in the default language.Content that are not yet translated to english..
I followed this guide:http://ez.no/products/ez_publish/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site
TextTranslation is set to disabled on my site because of some other issues.
[RegionalSettings] Locale=eng-GB HTTPLocale=en ContentObjectLocale=eng-GB TextTranslation=disabled [ContentSettings] TranslationList=eng-GB;nor-NO
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Friday 24 March 2006 10:28:11 am
Is there a way to make ez stop showing content in the default language if no translations are done ??
J-A Eberhard
Friday 24 March 2006 11:51:41 am
Yes,You have to use the only_translated parameter in the fetch
{fetch( 'content', 'list', hash( 'parent_node_id', 2, 'only_translated', true() ) )}
Fetch only nodes that reference objects that have been translated into the current language (the language that the siteaccess is using).
Open Source Solution Provider Open-Net Ltd Switzerland http://www.open-net.ch
Martin Sanders
Friday 28 April 2006 9:26:43 am
Hi J-A Eberhard,
Were do I stick your {fetch code, which file ? Sorry if I'm missing something.
Many thanks,
Friday 28 April 2006 12:06:27 pm
I knew about how to do this when you fetch, but I was talking about all content on a specific siteaccess.
like on siteaccess 'ensite', only displaying english content.But I have been trying out some of the new features in 3.8, and it's a breeze.