otago/subsites-domains

Easy management of domains

Installs: 4 050

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

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

This package is auto-updated.

Last update: 2021-11-27 05:28:01 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

https://github.com/silverstripe/silverstripe-subsites/issues/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.