get all data in a ezObject (including translated data)

Author Message

Roberto Sacchi

Wednesday 04 March 2009 10:11:27 pm

Hi,
When I try to fetch an object using his ID I cannot find data about all other translations.
It seems I only get data depending on which siteaccess I use (I use eng or ita).

How to get all data?

Thanks

Rob

Roberto Sacchi

Wednesday 04 March 2009 11:01:05 pm

I find a solution:

$object->contentObjectAttributes(true,false,"eng-GB",false,false)

$object is an instance of eZContentObject class)

if I want all english datas.

I can find the translation language (for exemple "eng-GB") using $object->allLanguages() method.

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