How can i display node date from cli?

Author Message

luis muñoz

Tuesday 29 August 2006 10:18:13 am

I have a question

With a code like this:

$nodeArray =& eZContentObjectTreeNode::subTree( array(  
		'ClassFilterType' => 'include',
		'ClassFilterArray' => $classID,
		'Depth' => $depth,  ), $parentNodeID  );
	foreach (array_keys( $nodeArray ) as $key ){
		$node =& $nodeArray[$key];
                                $objectName =& $node->attribute('name');
		$objectDate =& $node->attribute('Published');
		$objectModified =& $node->attribute('Modified');
		echo("$i -- $objectName -- $objectDate -- $objectModified\n");
                 }

I get the name of the object, but date and modified date are not displayed and don't know why or how to make date and modified date visible.

Any idea?

thanks

Paul Borgermans

Tuesday 29 August 2006 11:48:20 am

Hi Luis

I think it is just a problem of case: eg Published should be published
or

$objectDate =& $node->attribute('published');

hth

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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