Zum Inhalt springen

Multisite Model

Dieser Inhalt ist noch nicht auf Deutsch verfügbar und wird auf Englisch angezeigt.

The production CMS uses Statamic multisite. Each site handle in config/statamic/sites.php has its own name, locale, URL, and language code.

There are 32 Statamic site handles:

  • 3 national language sites: de, fr, it
  • 29 cantonal or half-cantonal sites

The older Strapi estate had fewer backend instances because some cantons shared a backend. The Statamic model is handle-based: Basel-Stadt and Basel-Landschaft, Appenzell Innerrhoden and Ausserrhoden, and Nidwalden and Obwalden are separate Statamic site handles even if their imported source data came from paired backends.

HandleNameLocaleLanguage
deJunge Grünliberalede_CHGerman
frJeunes Vert’libérauxfr_CHFrench
itGiovani Verdi Liberaliit_CHItalian

These three sites are the origin for most national content workflows. The German site is usually the origin entry for propagated collections, with French and Italian variants carrying translated copy and localized slugs.

German handleFrench handleNotes
be_debe_frBern/Berne
fr_defr_frFreiburg/Fribourg
vs_devs_frWallis/Valais

These sites share canton identity but expose separate language variants. URLs and visitor-facing text should be localized per language.

LanguageHandles
Germanag, ai, ar, bl, bs, gl, gr, lu, nw, ow, sg, sh, so, sz, tg, ur, zg, zh
Frenchge, ju, ne, vd
Italianti

gr is German-only in this project. There is no Italian or Romansh Graubünden site handle.

The national URLs in sites.php can be overridden with environment variables:

  • SITE_URL_DE
  • SITE_URL_FR
  • SITE_URL_IT

Cantonal URLs are configured directly in config/statamic/sites.php. Public docs may name the site handles and public domains, but private server vhost details stay in code-docs/ or the hosting configuration.

Multisite creates the separate site records. Blueprint localizable flags decide which fields can be overridden inside those records. The architecture details are documented in Localisation.