projects / org / contextualcode / ezplatform-content-packages
Find the Exponential Software extensions you want
| UNIX name | Owner | Status |
|---|---|---|
| ezplatform-content-packages | Contextual Code | stable |
| Version | Compatible with |
|---|---|
| N/A | N/A |
This bundle provides a way to export and import content between different eZ Platform installations.
Here are a few screenshots of the export/import forms and progress.
Please see the installation instructions.
After installing, there will be a new menu option under the "Content" tab that links to /content_packages.
From the installation you wish to export from, visit the Content Packages export page (/content_packages/export).
Content Package types supported currently are Location subtrees, Content Types, and Tag trees.
Please note that the exports are user-specific. Normal eZ permissions apply, and no one else will be able to view your exports.
Binaries (files/images) are included. References to other location/content ids (in relation attributes, for example) are resolved to their new ids.
Important
Please note that if there is a reference to a content/location id outside of the subtree you are exporting, it will be left intact (instead of being exported or resolved to a new id). This is a limitation that we wish to fix in future versions.
There are some options on the form. Leaving them as their defaults is fine, but you may want to change them if you need to customize how the Content Package is generated.
"Language":
Which language to export from.
"Preserve Remote Ids":
Controls whether or not remote ids will be included in the export.
If not, then new remote ids will be assigned when importing.
"Preserve Owner":
Controls whether or not owners of objects will be included in the export.
If not, then the user who imports this Content Package will be the owner.
"Preserve Publication Date":
Controls whether or not original publication dates will be included in the export.
"Preserve Modification Date":
Controls whether or not original modification dates will be included in the export.
"Preserve Section":
Controls whether or not sections will be included in the export.
"Preserve Object States":
Controls whether or not object states will be included in the export.
"Include File Binaries":
If this is checked, the images/files in the export will be included in the Content Package.
If this is unchecked, the images/files in the export will not be included, but the references to those images will still be in the migration files. This is useful if you want to put the files in your Content Package with rsync after the fact, for example.
"Include File References":
If this is checked, the images/files values in the export Migration Files will be left intact.
If this is unchecked, the images/files values in the export will be removed. This is useful if you don't want to import files at all into the new system.
"Exclude Fields from Export":
These are comma-separated content class attributes to not include in the export. They can be of the form "attribute_identifier" or "class_identifier/attribute_identifier".
"Attributes to Replace Hardcoded Location Ids In":
This parameter is useful, for example, if you have a Rich Text attribute that contains hardcoded location ids. Pass the name of that attribute here, and the export will replace those hardcoded location ids with the correct, new ids (if those locations are also in the subtree being exported).
"Attributes to Replace Hardcoded Content Ids In":
Same as the "Attributes to Replace Hardcoded Location Ids In" parameter, but with content ids.
"Add Brackets Around References in Fields":
Because of how the migration files work, you most likely want this field to contain the attributes you added to "Attributes to Replace Hardcoded Location Ids In" and "Attributes to Replace Hardcoded Content Ids In".
After exporting a Content Package, you can take that .zip file and use it to import to a different eZ installation. Visit the Content Packages import page (/content_packages/import).
When importing a subtree Content Package, you will have to select the parent location id to import the subtree under.
This tool is built off of Kaliop's eZ Migration Bundle, which is inspired by the DoctrineMigrationsBundle.
Generating an export of a subtree has a few main steps:
Imports are a bit simpler:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.