Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
   eZ Publish 4.x / legacy

eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: ref. EZP-26448


titleLoading Content in different languages

Since we didn't specify any language code, our Field objects object is returned in the default language, depending on your language settings in ezpublish.yml. If you want to use a non-default given Content item's main language. If you'd prefer it to fall back to the SiteAccess language(s), then take advantage of TranslationHelpers. Or if you want to use an altogether different language, you can specify a language code in the getField() call:

Code Block
$content->getFieldValue( $fieldDefinition->identifier, 'fre-FR' )