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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:36:43
Script start
Timing: Jan 18 2025 18:36:43
Module start 'layout'
Timing: Jan 18 2025 18:36:43
Module start 'content'
Timing: Jan 18 2025 18:36:43
Module end 'content'
Timing: Jan 18 2025 18:36:43
Script end

Main resources:

Total runtime0.0276 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0110 589.1641152.6406
Module start 'layout' 0.01100.0044 741.804739.4922
Module start 'content' 0.01540.0081 781.296993.3984
Module end 'content' 0.02350.0041 874.695334.3047
Script end 0.0276  909.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003613.1030140.0003
Check MTime0.00145.1666140.0001
Mysql Total
Database connection0.00124.291110.0012
Mysqli_queries0.007828.427530.0026
Looping result0.00000.054410.0000
Template Total0.003311.810.0033
Template load0.00155.345310.0015
Template processing0.00186.485910.0018
Override
Cache load0.00113.965610.0011
General
dbfile0.00030.964480.0000
String conversion0.00000.031140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs