PHPackages                             charliedev/fallback-site - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. charliedev/fallback-site

AbandonedCraft-plugin[Utility &amp; Helpers](/categories/utility)

charliedev/fallback-site
========================

Allows sites of a multi-site install to use entries of other sites if a matching slug is found.

1.2.2(7y ago)141.5k2[1 issues](https://github.com/charliedevelopment/craft3-fallback-site/issues)proprietaryPHP

Since Jan 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/charliedevelopment/craft3-fallback-site)[ Packagist](https://packagist.org/packages/charliedev/fallback-site)[ RSS](/packages/charliedev-fallback-site/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (6)Used By (0)

Fallback Site for Craft 3
=========================

[](#fallback-site-for-craft-3)

This plugin allows each site to fall back to another site when a requested element cannot be found. This allows multi-site installations (typically for multiple languages) to gracefully fall back to existing content if available.

When a request is made for an element that would normally not be found, *Fallback Site* will check the configured site for an element with the same slug. For example, if you have an English site and a Spanish site as part of your craft install, and English is the fallback for Spanish, then handling for a request to the Spanish site would go as follows:

- First, if an element was found on the Spanish site, everything continues as normal, and *Fallback Site* does not intervene.
- If an element was not found on the Spanish site, *Fallback Site* checks if there is an English element with the same the slug.
- If an English element is found, then that element's ID is used to see if there is a Spanish version available, which can happen if an incorrect, untranslated slug is used.
    - If a Spanish version exists, then a 301 redirect will be sent to the user, directing them to the correct URL.
    - If a Spanish version does not exist, then *Fallback Site* makes Craft use the English element in place of the Spanish one (With some conditions listed below).
- If an English element is not found, then the request continues as a 404 as normal.

See the flowcharts below which demonstrate what happens when requesting a page, `about-us`, under a secondary, Spanish site (located at `/es`) within a multi-site Craft installation.

**Normal Craft element handling**

[![Craft routing without Fallback Site](./resources/without-plugin.png)](./resources/without-plugin.png)

**Element handling with Fallback Site**

[![Craft routing with Fallback Site](./resources/with-plugin.png)](./resources/with-plugin.png)

Requirements
------------

[](#requirements)

- Craft CMS 3.0.0-RC1 or above

1. Open a terminal and navigate to your project folder:

```
cd /path/to/project
```

2. Require the package to download it via Composer:

```
composer require charliedev/fallback-site
```

3. Install the plugin on the `Settings -> Plugins` page in the Craft control panel.

**--- or ---**

3. Install the plugin via the command line:

```
./craft install/plugin fallback-site
```

Configuration
-------------

[](#configuration)

[![Fallback Site settings panel](./resources/settings-screenshot.png)](./resources/settings-screenshot.png)

Within the Craft control panel, go to the `Settings -> Plugins` page, and then look for the `Settings` button listed by the *Fallback Site* plugin.

Here, you can select which site acts as a fallback for each other site. Fallbacks can also be chained across multiple sites, each site falling back to the next.

Usage
-----

[](#usage)

While the plugin works without any additional configuration, you may want to know if an entry being displayed has been substituted by *Fallback Site*. This may be done to display notices about the availability of site-specific content, or notify users of the replacement. Detecting this can be done by comparing the current site stored by Craft with the entry's associated site.

```
{% if craft.app.sites.currentSite != entry.site %}
	{# Entry content is coming from a different site. #}
{% endif %}
{# ... or ... #}
{% if craft.app.language != entry.site.language %}
	{# Entry content is in a different language. #}
{% endif %}

```

---

*Built for [Craft CMS](https://craftcms.com/) by [Charlie Development](http://charliedev.com/)*

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~112 days

Total

5

Last Release

2631d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13066099?v=4)[Charlie](/maintainers/charliedev)[@charliedev](https://github.com/charliedev)

---

Top Contributors

[![sbossarte](https://avatars.githubusercontent.com/u/10968087?v=4)](https://github.com/sbossarte "sbossarte (23 commits)")

---

Tags

craft3craftcmscraftcms-pluginelementlanguagelocalemulti-siteroutingcmsCraftcraftcmssitefallbackelementdefaultmulti-site

### Embed Badge

![Health badge](/badges/charliedev-fallback-site/health.svg)

```
[![Health](https://phpackages.com/badges/charliedev-fallback-site/health.svg)](https://phpackages.com/packages/charliedev-fallback-site)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

292943.4k27](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k58](/packages/verbb-formie)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4249.7k](/packages/verbb-vizy)

PHPackages © 2026

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