Forums / Developer / Variable $object.languages

Variable $object.languages

Author Message

Albe Terra

Thursday 30 October 2008 7:43:20 am

Hi,
Which values are stored in the variable $object.languages?
I have a website with two languages: en-GB and ita-IT.
I have created a document in en-EN. Then I need to use that variable for that object...but it's empty!
Is it correct? Shouldn't it contain the value en-GB?

Thanks, Albe

Ɓukasz Serwatka

Thursday 06 November 2008 12:07:18 pm

Hi,

According to doc it is "list of languages the object exists in, ordered by their priority (as an array of ezcontentlanguage objects)."

Check your SiteLanguageList array in site.ini.append.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog