Monday 16 January 2012 12:32:15 pm - 3 replies
Hi all,
I struggling to figure out how to fetch current language from a block template. I can't get to $node or $module_result, and $block doesn't seem to give enough info.
Any help is helpfull ![]()
Felix
Monday 16 January 2012 12:57:30 pm
Hello Felix,
I don't know eZ Flow well enough but does this very helpful source code snippet help you solve your issue / concern / need? The following is a way to access the global variable for $node and return the node's node_id variable content in certain template usage contexts (again I'm not certain myself, apologies).
{$#node.node_id}
From: http://share.ez.no/forums/developer/get-node-id-in-zone-template-in-ezflow#comment70088
I hope this helps ...
Cheers,
Heath
Modified on Monday 16 January 2012 12:58:55 pm by Heath
You must be logged in to post messages in this topic!