projects / org / se7enxweb / ezxmlinstaller
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
ezxmlinstaller | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
eZ XML Installer extension 0.0.1 README
The eZ XML Installer extension is a plattform to define
proccesses for eZ Publish and execute them.
Proccesses will be defined in XML. The XML can be provided as
completed XML or as eZ Publish Template.
This template can contain a set of variables which will the user be ask for
before the processes will be executed.
The XML is a set of actions. Each action is bundled to a handler
which will proccess this action.
The set of handlers can be extended by custom handers.
The current version of eZ XML Installer is 0.0.1.
You can find details about changes for this version in
doc/changelogs/
This software is licensed under the GNU General Public License. The complete
license agreement is included in the LICENSE file. For more information
or questions please contact info@ez.no
The following requirements exists for using eZ XML Installer extension:
o eZ Publish version:
Make sure you use eZ Publish version 3.9 or higher.
o PHP version:
as indicated in your eZ Publish version requirements
Please read the INSTALL file for installation instructions.
A proccess XML files will be defined with a enclosing tag.
This tag contains a set of proccess definitions.
Here is an example:
The XML structure of each action is defined by the handler.
The proccess definition will be executed step by step downwards from top.
The eZXMLImporter tag may contain some attributes which will be called "settings".
This can be global settings. E.g. where are some binary files located.
The XML can contain internal or external referneces.
Currently are only "node_id" and "object_id" as external references are supported.
References can be only used by actions where the handler supports references.
Internal reference definition
References will be defined inside the action definition.
Example:
The "attribute" attribute will define which variable of the current action will be defined as reference.
The "value" attribute will name the variable the reference can be used with.
Usage of internal references
Internal references can be used with the "internal:" prefix.
References are not supported everywhere. Please consult the handler documentation where references can be used.
Example:
In this example role with id 8 will be assigned to the newly created group with reference "CONTENT_MANAGER_GROUP".
Here is a short introduction in the hanlder shipped with this extension
The template based proccess definition is an extended version of the file based definition.
The XML structure must be defined as described.
The template must be located under templates/xmlinstaller in a valid design.
But it is possible to define a set of variables which will be requested and can be used in the xml.
Futhermore it is possible to use standard template functionallity.
The XML must be defined in a variable block with the name "xml_data".
Example:
{set-block variable='xml_data'}
<?xml version = '1.0' encoding = 'ISO-8859-1'?>
[...]
{/set-block}
To request custom input before processing the "tpl_info" variable can be defined in the template.
E.g.
{set $tpl_info=hash(
'var1', hash( 'info', 'Number of objects',
'type', 'int' ),
'var2', hash( 'info', 'URL to siteaccess',
'type', 'string',
'default', 'http://mmc.ez' ))}
This will request two variables. "var1" and "var2"
The hash of each variable defines the additional information.
The variabled will be rquested before proccessing and can thus be used in the template as named.
E.g. {$var1} and {$var2}.
The xmlinstaller.php script will proccess the XML.
The script is located in extension/ezxmlinstaller/bin/php/.
It can be used in two ways:
possible, but not documented yet.
eZ Publish forums: http://ez.no/community/forum