Forums / Developer / Fetching main node id in script / Comment39721
Roy Viggo Pedersen
Monday 26 January 2004 3:51:28 am
Hi,
It should be as simple as:
$mainNodeID = $object->attribute( 'main_node_id' );
But I guess you have tried that, and $mainNodeID is still empty? What about $object? Are you sure it is defined?
Roy