$object or $node data in a datatype edit template?

$object or $node data in a datatype edit template?

Wednesday 23 February 2005 6:35:32 am - 1 reply

Author Message

Eric Weik

Wednesday 23 February 2005 7:21:10 am

Well, it turns out I found my own answers with a bit more digging:

$attribute.object: object this attribute belongs to.

Once you have an object, you can use the following to get its parent node in the content tree:

{let parent_node=fetch(content, node, hash( node_id, $attribute.object.current.main_parent_node_id ))}
  {* code here... *}
{/let}

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.