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.