Skip to content

otago/subsites-domains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Making it easier to manage multiple domains (subsites)

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.