Share » Forums » Setup & design » How can i access localized value of...

How can i access localized value of parent's parameters

How can i access localized value of parent's parameters

Wednesday 27 October 2010 3:17:44 am - 3 replies

Author Message

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

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

36 542 Users on board!

Forums menu