What cjw_multisite is made of
This page takes cjw_multisite apart: which packages it consists of, what each folder holds, and which file the
setup calls when. It is for developers who want to change the package or build one like it, and for administrators
who want to know what lands in var/storage/packages/7x/. Every file named here is in the source repository
se7enxweb/cjw_multisite-ezpackage and in the imported copies
of an installation.
Contents
- The packages at a glance
- The site package cjw_multisite
- The settings files and who calls them
- The content package cjw_multisite_democontent
- What is outside the packages
- The source repository
- Related pages
The packages at a glance
| Package | Type | Install type | Holds | Archive size |
|---|---|---|---|---|
cjw_multisite | site | import | Thumbnail, logo, license, seven settings files and their two helpers | 97,634 bytes |
cjw_multisite_democontent | contentobject | install | 40 class definitions, 138 object files, four side files | 169,949 bytes |
sevenx_classes | contentclass | (its own) | The base classes, shared with sevenx_multisite | see sevenx_classes |
Sizes are the content-length of the files under
https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/. The content package is small because it
carries no images: its 158 <simple-file> entries point into the extension (see
What is outside the packages).
The site package cjw_multisite
packages/cjw_multisite/
package.xml
documents/LICENCE
files/default/thumbnail/thumbnail.png
files/default/image/logo.png
settings/ini-site.php
settings/ini-admin.php
settings/ini-common.php
settings/cjw-multi-site-installer.php
settings/install-scripts.php
settings/roles.php
settings/preferences.php
settings/post-install-fix.php
settings/cjw-starter-install.phpThe parts of package.xml that matter:
<dependencies>
<requires>
<require type="ezpackage" name="sevenx_classes" min-version="5.1" />
<require type="ezpackage" name="cjw_multisite_democontent" min-version="5.1" />
</requires>
</dependencies>
<settings>
<settings-file filename='ini-site.php'/>
<settings-file filename='ini-admin.php'/>
<settings-file filename='ini-common.php'/>
<settings-file filename='cjw-multi-site-installer.php'/>
<settings-file filename='install-scripts.php'/>
<settings-file filename='roles.php'/>
<settings-file filename='preferences.php'/>
</settings>
<install />
<uninstall />The site package has no install items of its own (<install /> is empty). Its <files> list names the thumbnail
and the logo with their MD5 sums; the logo is set on the template look object at the end of the install. The
maintainer and changelog entries carry the name "Administrator User" and a maintainer e-mail.
The settings files and who calls them
Each listed settings file defines one function with a fixed name; the setup's create sites step looks for these
names (see Install scripts in a site package). Every one of them
only creates a cjwMultiSiteInstaller and hands over:
| File | Function | Calls |
|---|---|---|
ini-site.php | eZSiteINISettings( $parameters ) | siteINISettings(): menu, override, toolbar, site, image, content, template, content structure menu and ODF settings of the user siteaccess |
ini-admin.php | eZSiteAdminINISettings( $parameters ) | adminINISettings() |
ini-common.php | eZSiteCommonINISettings( $parameters ) | commonINISettings(): the settings/override files |
install-scripts.php | eZSitePreInstall() and eZSitePostInstall( &$parameters ) | preInstall() before the packages, postInstall() after them |
roles.php | eZSiteRoles( $parameters ) | siteRoles() |
preferences.php | eZSitePreferences( $parameters ) | sitePreferences() |
cjw-multi-site-installer.php | none | Defines class cjwMultiSiteInstaller extends eZSiteInstaller (5,939 lines) |
post-install-fix.php and cjw-starter-install.php are not in the <settings> list. The installer loads them with
require_once at its top:
require_once dirname( __FILE__ ) . '/post-install-fix.php';
require_once dirname( __FILE__ ) . '/cjw-starter-install.php';post-install-fix.php (593 lines) says of itself that it was generated from the 7x MultiSite installer's helpers by
renaming sevenx* functions to cjw*, "so both files can never meet as one declaration", and leaving out what only
the 7x demo content needs. cjw-starter-install.php (827 lines) holds the steps of the starter content. Both are
described in The installer scripts.
The content package cjw_multisite_democontent
packages/cjw_multisite_democontent/
package.xml
documents/LICENCE
ezcontentclass/class-<identifier>.xml 40 files
ezcontentobject/contentobjects.xml
ezcontentobject/object-cjw-starter-o-*.xml 138 files
cjw-class-additions.xml
cjw-explayouts.json
cjw-paths.json
cjw-starter-import.jsonIts <install> list has 40 ezcontentclass items and one ezcontentobject item (contentobjects); its
<uninstall> list removes the objects again. The four side files are not install items: the kernel's package
handlers never read them, the site package's installer does. Details in
The demo content package.
What is outside the packages
| What | Where | Read by |
|---|---|---|
| The images (155 entries) and files (3 entries) of the starter content | extension/cjw_themes_jumper/share/content-images/, share/content-files/ | cjwLinkStarterFilesFromExtension() before the packages install |
The design starter and its settings | extension/cjw_themes_jumper/ | the user siteaccesses at run time |
| The TMV event feed (optional) | extension/cjw_tmv/ | left out of the extension list when the folder is not there |
| The schemas of the extensions | extension/<name>/share/db_schema.dba | extensionSchemas() in preInstall() |
| The default admin layouts | extension/explayouts/share/fragments/admin_layouts_db_data.dba | postInstallImportAdminLayouts() |
The 158 simple-file entries name 77 distinct files in the extension; the 6.0.15 copy of the extension holds 74 images and 3 files in those two folders.
The source repository
se7enxweb/cjw_multisite-ezpackage is "laid out as the 7x package repository" (its first commit):
| Path | Purpose |
|---|---|
packages/cjw_multisite/, packages/cjw_multisite_democontent/ | The two packages, unpacked |
bin/pack.sh | Packs every folder under packages/ (except package_set) with tar -cz into <name>.ezpkg in --output-dir |
bin/repack_extension.sh, bin/ezpxmlextfilelist.php, ant/ | Helpers carried over from the 7x package repository |
.github/FUNDING.yml | The funding links of the repository |
pack.sh leaves out version control folders and files (.git, .gitignore, .gitattributes, .gitmodules,
.svn, .hg), editor and system leftovers (.DS_Store, .idea, .vscode, *~, *.swp), node_modules,
.cache and pack_and_publish.bat (the commit of 2026-10-14). Pass --output-dir; the script's default is a
directory under /tmp.
cd cjw_multisite-ezpackage
sh bin/pack.sh --output-dir=../build
tar -tzf ../build/cjw_multisite.ezpkg | headHow a rebuilt archive reaches the package server is described in How a release reaches the package server.
Related pages
- cjw_multisite
- The demo content package
- The installer scripts
- The .ezpkg file
- package.xml reference
- Dependencies and install order
- 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.