otago/subsites-domains

Easy management of domains

Installs: 5 333

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

v4.0.3 2020-01-27 01:48 UTC

This package is auto-updated.

Last update: 2024-03-27 10:37:02 UTC


README

This add-on makes allows you to easily link to other subsites in the CMS, set dev and test domains, and override domains in your configuration file.

Features

Create a link to a different subsite in the CMS

Picture of the subsite link selector

Create virtual pages that have their own template

silverstripe/silverstripe-subsites#235

Access the CMS interface by navigating to subsite.domain/admin

You'll be redirected to the main SilverStripe interface if trying to access /admin on a subsite.

Set different domains for Test and Dev mode in the CMS

Setting the Test and Dev domains

Override local development domains in your config file

This makes it handy while developing your SilverStripe domains locally. Because developers have different preferences for their domain naming conventions, this lets them set it to what they want. All while not disturbing the main dev and test site settings.

In .env:


DEV_SUBSITE_0=https://maindev.company.domain
DEV_SUBSITE_1=http://local.project1
DEV_SUBSITE_2=http://local.project2
DEV_SUBSITE_3=http://local.project3


Bypass the stage while accessing a subsite

If you try to access a subsite from the CMS, you'll be redirected to authenticate. This will fail if you're using a single sign in solution. As a result, stage= is blank.