PHPackages                             daun/statamic-multisite-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. daun/statamic-multisite-field

ActiveStatamic-addon[Localization &amp; i18n](/categories/localization)

daun/statamic-multisite-field
=============================

Fieldtype for storing localized values in non-localizable contexts

1.3.0(1mo ago)1194↓70%MITPHPPHP ^8.2

Since Jul 14Pushed 1mo agoCompare

[ Source](https://github.com/daun/statamic-multisite-field)[ Packagist](https://packagist.org/packages/daun/statamic-multisite-field)[ Docs](https://github.com/daun/statamic-multisite-field)[ RSS](/packages/daun-statamic-multisite-field/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Statamic Multisite Field
========================

[](#statamic-multisite-field)

Fieldtype for entering localized values in places Statamic doesn't usually localize — asset blueprints, form configs, globals without localization, and other "site-less" contexts.

It wraps a single field of any type, stores one value per site, and augments to the current site's value on the frontend.

Installation
------------

[](#installation)

```
composer require daun/statamic-multisite-field
```

Usage
-----

[](#usage)

Add a `multisite` field to a blueprint and configure the `field` it wraps. Define `display`and `instructions` on the root multisite field, not the wrapped field.

```
caption:
  type: multisite
  display: 'Caption'
  instructions: 'Shown below the image'
  field:
    type: text
```

Frontend Display
----------------

[](#frontend-display)

Values are augmented to the current site's value on the frontend. Use like any other field.

```
{{ caption }}
```

Storage
-------

[](#storage)

Values are stored keyed by site handle.

```
caption:
  en: 'Welcome home'
  fr: 'Bienvenue chez vous'
```

### Existing fields

[](#existing-fields)

Upgrading an existing field (e.g. `text` or `url`) to `multisite` just works: previously stored values are treated as the default site's value and upgraded to the per-site format on the next save.

Field Configuration
-------------------

[](#field-configuration)

OptionDefaultDescription`field`—The wrapped field's configuration (required).`layout``tabs`How to display the sites: one at a time behind a switcher (`tabs`, `bottom`, `start`, `end`) or all at once (`stack`).`inherit``true`Fall back to the default site's value when a site has no own value.`fallback`—Handle of a sibling field in the same publish context to fall back to when the default site has no value.### Site Switcher Layout

[](#site-switcher-layout)

In the control panel, the field shows the input for a single site at a time. Switch sites with the tabs above the field. All multisite fields on a page switch together, so you always see one consistent site across the form.

The `layout` field config controls how to switch sites.

#### Tabs

[](#tabs)

The default value of `tabs` shows a tab bar above the field.

#### Button Groups

[](#button-groups)

The values `bottom`, `start` or `end` show a button group next to the field.

#### Stacked

[](#stacked)

The value `stack` shows all sites in a single column, without a switcher.

### Inheritance

[](#inheritance)

A multisite field can inherit from a sibling in the same blueprint, in addition to inheriting between its own sites. This is useful for adding optional per-site translations of a field that already has a default value.

```
display:
  type: text

display_i18n:
  type: multisite
  inherit: true
  fallback: display
  field:
    type: text
```

Global Site Switcher
--------------------

[](#global-site-switcher)

With many multisite fields on one form, the per-field switchers add up. Add a `multisite_switcher` field to the blueprint to show a single global switcher that controls all multisite fields. Any multisite fields on the same form will then hide their own switchers.

Choose between three layouts: `tabs`, `buttons` or `dropdown`.

```
site_switcher:
  type: multisite_switcher
  layout: tabs
```

The switcher is a display-only field — it stores no data.

Limitations
-----------

[](#limitations)

- Listings and previews use the default site's value.
- Field conditions targeting the wrapped field are not supported.

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ac2b3787ded290b6bac87b937abf4f267483e4da64731bfb256a942bb669ca?d=identicon)[daun](/maintainers/daun)

---

Top Contributors

[![daun](https://avatars.githubusercontent.com/u/22225348?v=4)](https://github.com/daun "daun (28 commits)")

---

Tags

localizationmultisitestatamicfieldtype

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/daun-statamic-multisite-field/health.svg)

```
[![Health](https://phpackages.com/badges/daun-statamic-multisite-field/health.svg)](https://phpackages.com/packages/daun-statamic-multisite-field)
```

###  Alternatives

[statamic/statamic

Statamic

830185.7k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

138249.0k8](/packages/statamic-rad-pack-runway)[statamic/seo-pro

73578.9k](/packages/statamic-seo-pro)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[cboxdk/statamic-mcp

MCP (Model Context Protocol) server for Statamic CMS v6 — gives AI assistants structured access to content, blueprints, assets, and more.

3526.5k](/packages/cboxdk-statamic-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
