Content language fallback?

Author Message

Tobias Reifenberger

Wednesday 14 May 2003 1:41:55 am

Hi

If I change the ContentObjectLocale to a Language where some objects have no translations for, then all attributes of this objects are displayed with a 'null' value, instead falling back to a 'standard' language (where content is available).

Is this the desired behavior? Could someone help me to implement a such fallback logic? (Is ezcontentobject.php a good starting place for this?)

BTW: I'm using svn version 2356.

tnx es bye
--
Tobias Reifenberger

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 11:40:48
Script start
Timing: Jan 18 2025 11:40:48
Module start 'layout'
Timing: Jan 18 2025 11:40:48
Module start 'content'
Timing: Jan 18 2025 11:40:49
Module end 'content'
Timing: Jan 18 2025 11:40:49
Script end

Main resources:

Total runtime0.8734 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.0313152.6250
Module start 'layout' 0.00790.0038 741.656339.4453
Module start 'content' 0.01170.8601 781.1016400.0156
Module end 'content' 0.87180.0016 1,181.11728.1641
Script end 0.8733  1,189.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4066160.0002
Check MTime0.00160.1778160.0001
Mysql Total
Database connection0.00170.190010.0017
Mysqli_queries0.833795.4594460.0181
Looping result0.00040.0454440.0000
Template Total0.838496.020.4192
Template load0.00210.244420.0011
Template processing0.836395.750320.4181
Template load and register function0.00030.031610.0003
states
state_id_array0.00110.127210.0011
state_identifier_array0.00090.099420.0004
Override
Cache load0.00170.1984100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.082910.0007
Fetch class attribute name0.00070.081910.0007
XML
Image XML parsing0.00010.012510.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00070.0746100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs