ignore untranslated

Author Message

Golvier Jean

Thursday 13 May 2004 2:08:11 am

Hi,

I build a website with two languages but all content of primary language is not translated in the second one. So I want to find a way to show only translated articles.

I try fetch with "tanslation_list" but it doesn't work. I read on this forum something about attribute_filer in fetch function but i can't find the right code.

Could somebody explain how to proceed ?

Thanks,

Jean

Luis Muñoz

Wednesday 01 September 2004 10:45:26 am

{let ThisLang=$node.object.default_language}
  {section name=Lang loop=$auxlangnode.contentobject_version_object.language_list}
    {switch name=Sw1 match=$Lang:item.language_code}
      {case match=$ThisLang}
        do what you want
      {/case}
      {case}
      {/case}
    {/switch}
  {/section}
{/let}
               

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 19 2025 01:16:35
Script start
Timing: Jan 19 2025 01:16:35
Module start 'layout'
Timing: Jan 19 2025 01:16:35
Module start 'content'
Timing: Jan 19 2025 01:16:35
Module end 'content'
Timing: Jan 19 2025 01:16:35
Script end

Main resources:

Total runtime0.6222 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.0313152.6094
Module start 'layout' 0.00460.0031 741.640639.4297
Module start 'content' 0.00770.6129 781.0703456.0234
Module end 'content' 0.62070.0015 1,237.09388.1875
Script end 0.6222  1,245.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5079160.0002
Check MTime0.00130.2068160.0001
Mysql Total
Database connection0.00060.095110.0006
Mysqli_queries0.583493.7635540.0108
Looping result0.00060.0945520.0000
Template Total0.593295.320.2966
Template load0.00220.360320.0011
Template processing0.590994.975220.2955
Template load and register function0.00020.038210.0002
states
state_id_array0.00140.228010.0014
state_identifier_array0.00120.188420.0006
Override
Cache load0.00180.2887110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.098920.0003
Fetch class attribute name0.00100.165220.0005
XML
Image XML parsing0.00040.064320.0002
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00070.1096100.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs