[Fixed] Only translated items with module_result.content

Author Message

J-A Eberhard

Monday 26 September 2005 5:58:23 am

Hi,
I'm using a 3.6.2 for a multilingual portal. Each language with it's own siteaccess. It work fine except for one point.
As soon as an object is created in the default language (eng-GB) it is displayed in the main view by

$module_result.content

in every language siteaccess.
For the node list on the toolbar, I did add a

'only_translated', true(),

in the fetch content and now it's show me the object only if the translation exist.
How can I get the same with module_result.content or should I replace it in pagelayout.tpl with a custom fetch using the only_translated?
Thanks

JAE

Did the same for the folder_full template that override node/view/full.tpl

'only_translated', true(),

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

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 22:35:07
Script start
Timing: Jan 18 2025 22:35:07
Module start 'layout'
Timing: Jan 18 2025 22:35:07
Module start 'content'
Timing: Jan 18 2025 22:35:08
Module end 'content'
Timing: Jan 18 2025 22:35:08
Script end

Main resources:

Total runtime0.9856 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.0050 588.1563152.6563
Module start 'layout' 0.00500.0027 740.812539.4922
Module start 'content' 0.00780.9765 780.3047473.1797
Module end 'content' 0.98430.0013 1,253.48448.1094
Script end 0.9855  1,261.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3081160.0002
Check MTime0.00130.1313160.0001
Mysql Total
Database connection0.00080.086110.0008
Mysqli_queries0.944695.8454460.0205
Looping result0.00040.0414440.0000
Template Total0.956497.020.4782
Template load0.00210.208220.0010
Template processing0.954396.829020.4772
Template load and register function0.00010.008210.0001
states
state_id_array0.00070.071710.0007
state_identifier_array0.00070.071920.0004
Override
Cache load0.00160.1672170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.051910.0005
Fetch class attribute name0.00070.069520.0003
XML
Image XML parsing0.00030.035110.0003
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00080.0810150.0001
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs