PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Anson Cheung's Blog: Create nodes in eZ Publish using PHP

Note: This article was originally published at PHPDeveloper on 12 May 2012.
PHPDeveloper

In this new post from Anson Cheung, he shows you a way to easily create nodes in an eZ Publish-based application, importing content, XML and files/files.

Node creation in eZ Publish by using PHP is not well documented. However, when you encounter a large number of contents need to be insert periodically. You would ask is there any way to automate the content insert function with script in eZ Publish??? Any here I am going to summarize the way to achieve.

He includes the code examples showing how to:

  • Set the creator
  • Import generic content and attaching it to a parent node
  • Importing some XML content
  • Adding an image or file record that points to a local file