Siteaccesses and languages of cjw_multisite
A cjw_multisite installation has one public site, served in every language you choose, plus the administration.
This page lists the siteaccesses it gets, how their names and settings follow from the languages chosen at install
time, and what to choose for the starter content. It is for administrators planning an install and hosts setting up
addresses; the settings named are written by cjw-multi-site-installer.php (see
The installer scripts).
Contents
- The siteaccesses at a glance
- Choosing the languages
- How a translation siteaccess is named
- What each public siteaccess is set to
- Addresses and matching
- The language switcher
- The administration siteaccesses
- Related pages
The siteaccesses at a glance
With the command from the package description, --languages=eng-US,ger-DE and the default primary language
eng-US:
| Siteaccess | Serves | Design | Made by |
|---|---|---|---|
site | the starter site in the primary language (eng-US) | starter, then standard | the setup, then postInstallUserSiteaccessINIUpdate() |
ger | the starter site in ger-DE | the same (a copy of site) | createTranslationSiteAccesses() |
admin | the administration | admin4l, then admin4, admin3, admin2, admin | the setup, then postInstallAdminSiteaccessINIUpdate() |
editor | the administration for content editing | as made from admin | the setup (eZStepCreateSites::createEditorSiteAccess()) |
adminui | the administration in the AdminUI design | adminui | postInstallCreateAdminUISiteaccess(), only when extension/exp_adminui is there |
Unlike sevenx_multisite, there are no secondary sites: secondarySiteaccessList() returns an empty list, and the
step createSecondarySiteaccesses only logs "No secondary siteaccesses provided by this installation".
Choosing the languages
The starter content is mostly German. Of the 137 objects in cjw-starter-import.json, 111 exist only in ger-DE,
22 only in eng-US and 4 in both. So:
| You choose | You get | Starter content |
|---|---|---|
eng-US and ger-DE (recommended by the package description) | site in English, ger in German | complete in ger; site shows the English objects and, with ger-DE in its SiteLanguageList, the German ones |
ger-DE as primary, eng-US as further language | site in German, eng in English | complete in site |
eng-US alone | site only | the kernel adds ger-DE as a fallback content language (no siteaccess) so the German objects install |
The last row is what the 6.0.15 changelog describes for eZStepCreateSites::contentFallbackLanguages(): before it,
such an install logged 125 errors and the site could not show that content. The installer itself also adds eng-US
as a fallback language when the chosen languages lack it (fallback_locales).
# English site plus German translation siteaccess
./console exp:install --apply --package=cjw_multisite --languages=eng-US,ger-DE
German as the main site, English as the translation
./console exp:install --apply --package=cjw_multisite --language=ger-DE --languages=eng-US--language and --languages are described in The console install; the
kickstarter uses [language_options] Primary and Languages[] (see The kickstarter).
How a translation siteaccess is named
Every chosen language other than the primary one gets a siteaccess. Its name comes from
eZSiteInstaller::languageNameFromLocale() (kernel/classes/ezsiteinstaller.php): the part of the locale before the
hyphen, so ger-DE gives ger and eng-US gives eng. Then:
- Two chosen locales of one language (
eng-USandeng-GB): the first keeps the short name, later ones add their country (eng_gb). - The names
site,admin,editor,adminuiand the chosen user, admin and editor siteaccess names are taken; a translation that would collide with one gets its country added, then a number.
What each public siteaccess is set to
The user siteaccess (settings/siteaccess/site/):
| Setting | Value |
|---|---|
[DesignSettings] SiteDesign, AdditionalSiteDesignList[] | starter; standard |
[SiteAccessSettings] ExtensionSettingsSiteAccess | cjw_starter (the siteaccess settings of cjw_themes_jumper) |
[SiteAccessSettings] PathPrefix | the URL alias of the starter root (the object "Starter"; starter in the installer's comments) |
[SiteSettings] IndexPage, DefaultPage | /content/view/full/<node of cjw-starter-n-779>, the start page |
[SiteSettings] RootNodeDepth, content.ini [NodeSettings] RootNode | the depth and node id of the starter root |
[SiteSettings] SiteName | the site title, CJW JAC Exponential by default |
[RegionalSettings] Locale, ContentObjectLocale, SiteLanguageList | the primary language; it, the other chosen languages, then the fallback languages |
[RegionalSettings] ShowUntranslatedObjects | disabled |
[SiteAccessSettings] RequireUserLogin, ShowHiddenNodes | false, false |
A translation siteaccess is a copy of it with its own Locale and ContentObjectLocale, TextTranslation=enabled
(disabled for eng-GB), SiteLanguageList starting with its own locale, ShowUntranslatedObjects=enabled,
[ContentSettings] TranslationList set to its locale, and its own SiteURL. Its menus are copied from the user
siteaccess after the package node fix (copySiteaccessMenus()).
The starter layouts' siteaccess rules name the user siteaccess and all translation siteaccesses
(cjwSeedStarterLayouts()), and so do the privacy and cookie policy settings (postInstallStarterPolicyPages).
Addresses and matching
settings/override/site.ini.append.php gets:
[SiteAccessSettings]
AvailableSiteAccessList[]=site
AvailableSiteAccessList[]=ger
# ... admin, editor, adminui
MatchOrder=uri;host
PathPrefixExclude[]=Media
PathPrefixExclude[]=Users
ForceVirtualHost=true
[SiteSettings]
DefaultAccess=site
RootNodeDepth=1MatchOrder is uri;port when the install uses port access. With URL access the translation is reached by path
(https://www.example.com/ger/). With port access a translation gets the next port after the site's; with host access
the installer's comment names the form ger.example.com. See
Siteaccess host and language matching.
One session covers all public siteaccesses ([Session] SessionNamePerSiteAccess=disabled on the user siteaccess),
while the admin keeps a session of its own (SessionNameHandler=custom in the override).
The language switcher
[RegionalSettings] TranslationSA maps each public siteaccess to the name of its language in that language, without
the country: Deutsch (Deutschland) becomes Deutsch (translationSALabel()). It is written to the user siteaccess,
the translations (as copies) and the admin, never to settings/override, because a whole-array setting there would
wipe the siteaccesses' own. The starter design's switcher reads it.
The administration siteaccesses
admin: login required,ShowHiddenNodes=true, content root node 2,LocaleandSiteLanguageListfrom the chosen languages,ActiveAccessExtensions[]withexpaiandexp_adminuiwhere present. See admin4l.editor: made by the setup from the admin's files; see The setup wizard and the editor siteaccess.adminui: reached by URI only (/adminui), with no host, port or host match entry. See exp_adminui.
Note
Anonymous may sign in on every served siteaccess except admin and adminui (siteRoles()), so the editor
siteaccess and the public ones accept the login form.
Related pages
- cjw_multisite
- The installer scripts
- What you have after installing
- Siteaccesses and languages of sevenx_multisite
- Translations and languages
- 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.