ez.no / ezpublish / documentation / ez publish 3.4 / content object export with ezpm
These documentation pages are no longer maintained. Please visit the new documentation site.
From 3.4 it will be possible to export content objects using the package system. You can do this with the command line version of the package manager (called ezpm).
The basics of doing this is first creating a new package, adding your objects or subtrees to the package then exporting it to a file. This file can later on be imported to another site.
ezpm.php add package contentobject [options][path|node]
The path is chosen in the same manner as the URL alias which is shown in the path in the browser. If you want to export all objects under the node you must add /* to the end of the path
e.g. news/this_is_news, news or news/*
Note: To fetch the entire tree including users and media you must use an empty string, e.g. ''
The node is simply the node ID which is a integer number.
e.g. 2, 5 or 42
A couple of examples, all uses forum as package.
ezpm.php add forum contentobject 'forum/*'
ezpm.php add forum contentobject --all-versions 'forum/*'
ezpm.php add forum contentobject --exclude-templates 'forum/*'
Comments
Other ezpm commands
Kim Marshall
Thursday 15 July 2004 8:11:57 am
usage: create NAME [SUMMARY [VERSION [INSTALLTYPE]]] [PARAMETERS]
SUMMARY: A short summary of your package
VERSION: The version of your package, default is 1.0
INSTALLTYPE: Use install (default) for a package that installs files or
import for a package that can only be imported.
Parameters:
install: Install an eZ publish package.
usage: install PACKAGE
PACKAGE can be specified with just the name of the of package or
the filename of the package. If just the name is used the package
will be looked for by appending .ezpkg
import: Import an eZ publish package.
usage: import PACKAGE
PACKAGE can be specified with just the name of the of package or
the filename of the package. If just the name is used the package
will be looked for by appending .ezpkg
export: Export a part of the eZ publish installation into a package.
usage: export TYPE [PARAMETERS]... [TYPE [PARAMETERS]...]...
Options:
-o,--output FILE export to file
add: Adds an eZ publish item to the package.
usage: add PACKAGE ITEM [ITEMPARAMETERS]...
Items:
group: Add categorization groups
ezcontentclass: Add contentclass definitions
Note: Will open up a new release if no open releases exists yet.
set: Sets an attribute in the package.
usage: set PACKAGE ATTRIBUTE ATTRIBUTEVALUE
Attributes:
summary :
description :
vendor :
priority :
type :
extension :
source :
version :
licence :
state :
Note: Will open up a new release if no open releases exists yet.
list (ls): Lists all packages in the repository.
usage: list
info: Displays information on a given package.
usage: info PACKAGE