What sevenx_multisite is made of
This page is for developers and administrators who want to open the sevenx_multisite package and know what every
file is for. It answers: which files the site package holds, what its package.xml declares, which packages it pulls
in, and which parts of a finished installation come from somewhere else.
Contents
- The files of the site package
- What package.xml declares
- The settings files
- The required packages
- What is not in the packages
- Opening the package yourself
The files of the site package
The folder packages/sevenx_multisite/ of se7enxweb/sevenx-ezpackage
holds twelve files, and the published sevenx_multisite.ezpkg of 6.0.15 holds the same ones:
package.xml
documents/LICENCE
files/default/image/logo.png
files/default/thumbnail/thumbnail.png
settings/ini-admin.php
settings/ini-common.php
settings/ini-site.php
settings/install-scripts.php
settings/post-install-fix.php
settings/preferences.php
settings/roles.php
settings/sevenx-multi-site-installer.phpThere is no content and no class definition in the site package itself: those come from the packages it requires.
What package.xml declares
| Element | Value in sevenx_multisite |
|---|---|
<package version> | 6.0.15-0, with install_type="import" |
<name> | sevenx_multisite |
<summary> | MultiSite Default Installation |
<vendor> | 7x |
<type value> | site |
<ezpublish><version> | 6.0.15-stable (named version 6.0) |
<version> | number 6.0, release 15-stable |
<licence> | GPL, with the text in documents/LICENCE |
<state> | stable |
<maintainers> | one maintainer with the role lead and a maintainer e-mail |
<files> | a default collection with a thumbnail (thumbnail.png) and an image (logo.png), each with an md5sum |
<requires> | sevenx_classes and sevenx_multisite_democontent, both type="ezpackage", min-version="5.1" |
<settings> | seven <settings-file> entries, listed below |
<install>, <uninstall> | empty: the package installs no items of its own |
The <host> in <packaging> names the machine the package was built on. The element-by-element reference is
package.xml reference.
The settings files
CreateSites (kernel/setup/steps/ezstep_create_sites.php) includes every <settings-file> of the chosen site
package from its settings/ folder, then calls the functions those files define when they exist. The seven files
listed in sevenx_multisite's package.xml, in their order there:
| File | Defines | Calls on sevenxMultiSiteInstaller |
|---|---|---|
ini-site.php | eZSiteINISettings() | siteINISettings(): settings of the public siteaccess |
ini-admin.php | eZSiteAdminINISettings() | adminINISettings(): settings of the admin siteaccess |
ini-common.php | eZSiteCommonINISettings() | commonINISettings(): settings written to settings/override/ |
sevenx-multi-site-installer.php | the class sevenxMultiSiteInstaller | (the class itself, 7692 lines) |
install-scripts.php | eZSitePreInstall(), eZSitePostInstall() | preInstall() and postInstall() |
roles.php | eZSiteRoles() | siteRoles() |
preferences.php | eZSitePreferences() | sitePreferences() |
Each wrapper is a few lines: it creates a new sevenxMultiSiteInstaller with the parameters it was given and returns
what the method returns.
post-install-fix.php is the eighth file. It is not a <settings-file>: the installer loads it itself with
require_once dirname( __FILE__ ) . '/post-install-fix.php'; on its first line of code. It holds the functions that
repair node placement, layout references, menus, tags and URL aliases after the content is in. See
Post-install fixes.
Note
sevenx_multisite and sevenx_multisite_clean carry byte-identical copies of all eight PHP files. Only their
package.xml differs: name, summary, description and the demo content package they require.
The required packages
| Package | Type | Contents | Page |
|---|---|---|---|
sevenx_classes | contentclass | 33 class definitions in ezcontentclass/, install_type="install" | sevenx_classes |
sevenx_multisite_democontent | contentobject | 31 class definitions, 291 object files, 194 image and file blobs in simplefiles/ | The demo content packages |
How the setup resolves <requires> and in which order it installs them is described in
Dependencies and install order.
What is not in the packages
Several parts of a finished installation do not travel in any .ezpkg:
| Part | Where it comes from |
|---|---|
| The templates and design of both sites | the sevenx_themes_media extension (design media), with sevenx_themes_simple after it |
The siteaccess settings of bold and bold_ger | shipped by sevenx_themes_media in settings/siteaccess/bold and bold_ger, completed by the installer |
| Layouts, zones, blocks, collections and rules | extension/sevenx_themes_media/share/db_data.dba, see Layouts data and the share .dba files |
Tags (eztags) and the star rating of the test product | the same db_data.dba |
| The newsletter classes and tree | the cjw_newsletter extension's own packages, imported by a post-install step |
| The admin layouts | extension/explayouts/share/fragments/admin_layouts_db_data.dba |
So the extensions must be in the installation before the site package is installed. The installer checks for some
of them (exp_adminui, expai, sevenx_authentication_2fa, cjw_newsletter) and skips their parts when they are
missing; the others are simply listed in ActiveExtensions.
Opening the package yourself
An .ezpkg is a gzip-compressed tar archive, so the usual tools read it:
curl -sO https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/sevenx_multisite.ezpkg
tar -tzf sevenx_multisite.ezpkg
tar -xzOf sevenx_multisite.ezpkg package.xml | lessAn imported copy lives under var/storage/packages/7x/sevenx_multisite/ of any installation that installed it,
next to a .cache folder the kernel writes. More on the format: The .ezpkg file.
Related pages
- sevenx_multisite
- Install scripts in a site package
- The multisite installer script
- The local package repository
- Site packages: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.