Sunday 11 May 2008 1:46:11 pm
Hi ! I'm looking for a way to run the eZ cli lorem ipsum data creation script (http://ezpedia.org/wiki/fr/ez/snippet_ez_cli_lorem_ipsum_data_creation_script_unstable) into an eZ Publish 4.0. The first thing I've done was to add
require 'autoload.php';
in top of the script. After, I encouter an error (Fatal error: Call to a member function setAttribute() on a non-object) on
$newNode->setAttribute( 'contentobject_version', 1 );
I think it was because $newNode was not set, so I replaced the line with $node->addChild by this : // $newNode =& $node->addChild( $objectID, 0, true );
$newNode = eZContentObjectTreeNode::addChildTo($objectID, $nodeID, true, 1 );
So now, I do not encouter errors, but objects are not created... Have you any piece of code who can help me ? I know that there is the api documentation but functions descriptions are very light ! Thanks in advance !
eZ Publish Freelance
web : http://www.webaxis.fr
|