Skip to the content
Documentation

Creating new packages

No ratings yet

Setup > Packages > Create new package (/package/create) writes a new package into the local repository. Nothing on the site changes. The page shows one tile per wizard your role may use (package/create, limited by type); each wizard is a series of steps that shows where you are and reviews the whole package before Create package writes it.

Wizard Exports Steps
Content class export (ezcontentclass) The definitions of content classes, no content Content classes to include, Package information, Package maintainer, Package changelog
Content object export (ezcontentobject) Nodes or subtrees with their content, optionally their classes and templates Content objects to include, Content object limits, Package information, Package maintainer, Package changelog
Extension export (ezextension) The files of extensions Extensions to include, Package information, Package maintainer, Package changelog
Site style (ezstyle) Two stylesheets, their images and a thumbnail Package thumbnail, CSS files, Image files, Package information, Package maintainer, Package changelog

The creators are in kernel/classes/packagecreators/. There is none for site packages: those are made by hand (see Package types).

The common steps

  • Package information: name, summary, version, license and description, and the format the package is kept in, Classic XML (the default) or JSON.
  • Package maintainer: name, e-mail address and role of the maintainer.
  • Package changelog: what changed in this version (optional).

Content class packages

Choose the classes to include. The package holds one file per class with its attributes and their settings; the datatypes serialize their own class settings.

Content object packages

Choose what to include: Add node adds single nodes, Add subtree whole subtrees, both through the browse page, where several nodes can be chosen at once; Remove selected takes items out again. The next step sets the export properties, among them whether the classes of the objects and the templates that display them are included, and which versions and languages go into the package.

Extension packages

Choose the extensions to include. The package carries their files. Most extensions of an Exponential installation are installed with Composer today; an extension package is for moving one that is not.

Site style packages

A site style package holds a thumbnail image (shown when the style is chosen), two stylesheets (the colors and backgrounds of the page layout, and the styles of the class templates) and the images they use. Site style packages are imported, not installed.

After creating

The new package is on the list in the local repository. Download it as an .ezpkg (Exporting packages to files), or from a shell with php ezpm.php export <name> -d var/tmp. ezpm.php create and ezpm.php add build packages on the command line.

More

In this section

Contributors

Comments (2 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. But where do they come from?

    Jochim Lous ·

    importaing and exporting conent classeds is all well and good, but how do you create one in the first place?

Comments

Add a comment

Comments are read by a moderator before they appear.