Forums / Setup & design / How can i access localized value of parent's parameters
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 ?
ThanksBrijesh
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
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 Exponential 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