Only show translated content on Multilingual site

Only show translated content on Multilingual site

Wednesday 22 March 2006 2:16:04 am - 4 replies

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.