Tuesday 01 April 2008 3:38:40 am
create a simple datatype that just stores the object id in an attribute ( not if you use node id: the object doesn't necessary have a node ). Or use a int attribute and override the edit template of it for that particular attribute identifier, where you set the id in a hidden input box (again note that object might not have a node id).
I'm not sure why you need this though, since you can always get the node id / object id by code. template:
{def $obj_id = $my_object.id
$node_id = $my_object.main_node_id}
$node_id will be 'null' if the object doesn't have a node.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|