Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Siteaccesses and languages of cjw_multisite

Which siteaccesses a cjw_multisite installation gets and how the chosen languages shape them. The user siteaccess, one translation siteaccess per further language and how it is named, the admin, editor and adminui…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/site-packages/cjw-multisite/siteaccesses-and-languages.md

On this page

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

  1. The siteaccesses at a glance
  2. Choosing the languages
  3. How a translation siteaccess is named
  4. What each public siteaccess is set to
  5. Addresses and matching
  6. The language switcher
  7. The administration siteaccesses
  8. 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:

SiteaccessServesDesignMade by
sitethe starter site in the primary language (eng-US)starter, then standardthe setup, then postInstallUserSiteaccessINIUpdate()
gerthe starter site in ger-DEthe same (a copy of site)createTranslationSiteAccesses()
adminthe administrationadmin4l, then admin4, admin3, admin2, adminthe setup, then postInstallAdminSiteaccessINIUpdate()
editorthe administration for content editingas made from adminthe setup (eZStepCreateSites::createEditorSiteAccess())
adminuithe administration in the AdminUI designadminuipostInstallCreateAdminUISiteaccess(), 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 chooseYou getStarter content
eng-US and ger-DE (recommended by the package description)site in English, ger in Germancomplete 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 languagesite in German, eng in Englishcomplete in site
eng-US alonesite onlythe 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-US and eng-GB): the first keeps the short name, later ones add their country (eng_gb).
  • The names site, admin, editor, adminui and 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/):

SettingValue
[DesignSettings] SiteDesign, AdditionalSiteDesignList[]starter; standard
[SiteAccessSettings] ExtensionSettingsSiteAccesscjw_starter (the siteaccess settings of cjw_themes_jumper)
[SiteAccessSettings] PathPrefixthe 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] RootNodethe depth and node id of the starter root
[SiteSettings] SiteNamethe site title, CJW JAC Exponential by default
[RegionalSettings] Locale, ContentObjectLocale, SiteLanguageListthe primary language; it, the other chosen languages, then the fallback languages
[RegionalSettings] ShowUntranslatedObjectsdisabled
[SiteAccessSettings] RequireUserLogin, ShowHiddenNodesfalse, 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=1

MatchOrder 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, Locale and SiteLanguageList from the chosen languages, ActiveAccessExtensions[] with expai and exp_adminui where 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.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x