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