How can i access localized value of parent's parameters

Author Message

Brijesh Tekrawala

Wednesday 27 October 2010 3:17:44 am

I have used below but it is not giving localized data.

$#node.parent.data_map.param_1.data_text

Can you please provide any information you have ?

Thanks
Brijesh

Lo' F.

Wednesday 27 October 2010 3:04:49 pm

Try by launching |attribute(show) from inside the node..

{$node.object|attribute(show)}

the list of the resulting values should give useful infos to help you decide which attribute you may need to use.

loredanaebook.it

Brijesh Tekrawala

Wednesday 27 October 2010 11:28:51 pm

Thanks, Will check it out.

Nicolas Pastorino

Thursday 28 October 2010 1:19:21 am

Hi Brijesh,

Accessing content from the tpl language, or PHP api should automatically return the localized/translated data, if translations were setup beforehand. The chosen language/locale are conditioned by the current siteaccess' settings, in site.ini (the respective override placed in the your siteaccess directory : settings/siteaccess/<siteaccessname>/site.ini.append.php), under RegionalSettings.

The default, english eZ Flow one looks like this :

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-GB
TextTranslation=disabled

More information on configuring eZ Publish for nice localisations : http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/RegionalSettings

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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