Forums / Developer / Fetch object for all available languages

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Fetch object for all available languages

Author Message

Codeforest Smith

Friday 19 August 2011 5:38:46 am

Hi Guys,

I have a NodeID and want to get the name attribute of its ParentNodeID (which is folder) in all available languages.

Is it possible?

 

Thanks in advance

http://codeforest.net

Daniel A. Øien

Saturday 20 August 2011 4:19:41 am

I haven't tested this fully, but it should look something like this:

{def $lnode=array()}
{foreach $node.parent.object.available_languages as $language}
{set $lnode=fetch('content', 'node', hash('node_id', $node.parent.node_id, 'language_code', $language))}
{$lnode.name}
{/foreach}

Daniel A. Øien
Open Concept SA, Norway
Web: http://openconcept.no/
In English: http://openconcept.no/eng