Forums / Setup & design / ShowUntranslatedObjects and hidding of content

ShowUntranslatedObjects and hidding of content

Author Message

Gerhard Sletten

Thursday 02 October 2008 4:39:10 am

Problem: You are creating a multisite site with one siteaccess for each language, and you want only content with for lets say swedish to be available in the "se" siteaccess.

Step 1: Dissable "Default object availability" for all your classes

Step 2: In your spesific siteaccess site.ini.append.php:

[RegionalSettings]
Locale=swe-SE
ContentObjectLocale=swe-SE
#SiteLanguageList[]
SiteLanguageList[]=swe-SE
ShowUntranslatedObjects=disabled
TextTranslation=enabled

With earlier published content you will have to create it again in order to only let them show up in the right siteaccess. Clearing the cache dosen't seem to have any effect on this.

Triathlon, Webdev, Novels and Cooking..
http://www.gersh.no

Ivo Lukac

Thursday 02 October 2008 6:50:45 am

Hello Gerhard,

When you disable "Default object availability" it only affects future objects. To disable it for existing objects enable translation tab and check out "Use the main language if there is no prioritized translation." for every object.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gerhard Sletten

Thursday 02 October 2008 8:03:25 am

Thanks!

Triathlon, Webdev, Novels and Cooking..
http://www.gersh.no

Sebastiaan van der Vliet

Friday 24 October 2008 2:37:23 pm

For updating many objects, you can use http://ez.no/developer/contribs/hacks/update_always_available_setting

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.