Forums / Install & configuration / Only show translated content on Multilingual site

Only show translated content on Multilingual site

Author Message

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

André R.

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 ??

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

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,

André R.

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.

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

eZ debug

Timing: Jan 18 2025 21:05:55
Script start
Timing: Jan 18 2025 21:05:55
Module start 'content'
Timing: Jan 18 2025 21:05:56
Module end 'content'
Timing: Jan 18 2025 21:05:56
Script end

Main resources:

Total runtime1.1115 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9609180.8047
Module start 'content' 0.00590.9809 768.7656609.2500
Module end 'content' 0.98690.1245 1,378.0156337.3438
Script end 1.1114  1,715.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3658210.0002
Check MTime0.00150.1372210.0001
Mysql Total
Database connection0.00060.056310.0006
Mysqli_queries1.029392.60602020.0051
Looping result0.00210.18952000.0000
Template Total1.073596.620.5367
Template load0.00270.246120.0014
Template processing1.070896.337120.5354
Template load and register function0.00010.008310.0001
states
state_id_array0.00130.115310.0013
state_identifier_array0.00140.128120.0007
Override
Cache load0.00240.2126280.0001
Sytem overhead
Fetch class attribute can translate value0.00110.096840.0003
Fetch class attribute name0.00140.127870.0002
XML
Image XML parsing0.00130.116240.0003
class_abstraction
Instantiating content class attribute0.00000.001890.0000
General
dbfile0.00390.3469330.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs