Share » Forums » Developer » Fetching main node id in script

Fetching main node id in script

Fetching main node id in script

Thursday 22 January 2004 7:57:05 am - 2 replies

Author Message

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

Eirik Alfstad Johansen

Thursday 29 January 2004 1:07:36 am

Hi Roy,

Actually, I hadn't, and it worked. For debugging purposes, I was using the PHP function get_object_vars() which showed the MainNodeID as emtpy, but accessing it using the attribute method worked like a charm.

Thanks !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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

36 542 Users on board!

Forums menu