Extensions and Tools » Extensions » Data Import

Data Import

The purpose of this extension is to import data from a given data source (like XML / CSV documents) into the eZ Publish content tree. This extension licensed is under the GPL.

Extension : data_import
Requires : eZ Publish 4.x.x
Authors : Marius Eliassen, Philipp Kamps


We choose an object-oriented approach. Developers need to implement a SourceHandler that understands the given data source. The handler is completely independent from the import operators. The import operators contain the logic on how to create/update the content nodes in eZ Publish.

Import Process

Each import process starts with an eZ Publish command line script. It gets an instance of a SourceHandler and an ImportOperator and then runs the ImportOperator.

Get started

Here is a quick explanation on how to get started:

  • install a vanilla eZ Publish 4.0.0 or higher
  • extract the extension to the extension folder and activate it in settings/override/site.ini.append.php
  • run 2 example imports

 prompt> php extension/data_import/scripts/run.php -i ImportOperator -d XMLFolders
 prompt> php extension/data_import/scripts/run.php -i ImportOperator -d XMLImages


 prompt> php extension/data_import/scripts/run.php -i ImportOperator -d CSVFolders
 prompt> php extension/data_import/scripts/run.php -i ImportOperator -d CSVImages

GitHub: https://github.com/mugoweb/data_import

Have something in mind? We'd love to chat about it.

We're always open to being involved in challenging and interesting projects. If you have something that might fit the bill - let's talk.

Hi, we're Mugo Web - Nice to meet you!

We're a group of web experts who solve complex web problems.

Learn more about us »

eZ Publish Extensions

We extend eZ Publish beyond its limits to make it a platform that's truly built around our client's work flow.

Learn more about our extensions »

Yes - we can do that.

Many years of experience with complex websites allows us to offer total solutions.

Learn more about what we can do »
© 2008 - 2019 Mugo Web. All rights reserved.