2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

image

symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 22 Forks
  • 2 Open issues
  • 44 Versions
  • 21 % Grown

The README.md

SilverStripe Multisites

Build Status, (*1)

Overview

Allows for multiple websites to be managed through a single site tree., (*2)

This is an alternative module to the Subsites module; it avoids any session tracking of the 'current' website, and doesn't perform any query modification at runtime to change the 'site' context of queries you execute, (*3)

Compatible with SilverStripe 4.0.x, (*4)

  • Please see 4.0.x for 3.5 compatibility
  • Please see the 1.2.x version for 3.1 compatibility

Upgrading to SS4

The following important changes have happened, (*5)

  • Themes must now be explicitly configured in your project config. Set Site.available_themes in yml config. This must be a map of themename: Label
  • Site specific Assets folders are not currently supported due to the fundamental change to asset management. This will be reviewed over time

Requirements

Installation

  • Add the module and the multivaluefield module
  • Run dev/build

Setting up sites (and additional sites)

  • In the CMS go to the Pages section and click on the Website
  • Enter in the full path to the site in the 'Host' field, without the http:// lead - eg mysitedomain.com or localhost/sub/folder for a development site
  • Hit save
  • To add a new site, click the Pages section; you should have an 'Add site' button
  • Enter details about the new site, the Host field being the most important

Configuration

Site:
  available_themes:
    name: Label

To support cascading themes, provide a comma-separated list of themes for 'name' in configuration., (*6)

Assets management

NOTE: This is currently NOT working in SS4 due to the change to the asset management layer. Once clearer, this will be re-enabled., (*7)

You can optionally manage each site's assets in it's own subfolder of the root assets/ directory. Add the following extensions in your mysite/config.yml file and run ?flush=1. When editing a Site in the CMS, you now have the option to select a subfolder of assets/ to contain all assets for that site. This folder will be automatically created upon a) saving the site or b) visiting a page in the cms that has an upload field., (*8)

FileField:
  extensions:
    - MultisitesFileFieldExtension

HtmlEditorField_Toolbar:
  extensions:
    - MultisitesHtmlEditorField_ToolbarExtension

Files uploaded through the HTMLEditor will now be uploaded into assets/yoursite/Uploads. If you have custom upload fields in the cms however, you will need to add the following configuration to them explicitly., (*9)

$fields->fieldByName('Root.Main.Image')->setFolderName('images/page-images')->useMultisitesFolder();

The above call to useMultisitesFolder() will change the folder name from ' images/page-images' to 'currentsitesubfolder/images/page-images', (*10)

Known issues

When linking to a page that belongs to a different site, SiteTree::Link() will return a bad link as it prepends the base URL. Currently the best way to work around this is to implement the following in your Page.php (model class)., (*11)

/**
 * Overrides SiteTree->Link. Adds a check for cases where we are linking to a
   page on a
 * different site in this multisites instance.
 * @return String
 **/
public function Link($action = null) {
    if($this->SiteID && $this->SiteID == Multisites::inst()->getCurrentSiteId()) {
        return parent::Link($action);
    } else {
        return $this->RelativeLink($action);
    }
}

The Versions

16/05 2018

dev-master

9999999-dev http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

16/05 2018

5.0.3

5.0.3.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

02/03 2018

5.0.2

5.0.2.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

25/01 2018

5.0.1

5.0.1.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

09/01 2018

4.0.x-dev

4.0.9999999.9999999-dev http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

09/01 2018

4.3.0

4.3.0.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

10/11 2017

5.0.0

5.0.0.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

10/11 2017

dev-feature-ss4-upgrade

dev-feature-ss4-upgrade http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

The Development Requires

silverstripe subsites multisites

06/10 2017

4.2.0

4.2.0.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

23/08 2017

4.1.1

4.1.1.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

15/08 2017

4.1.0

4.1.0.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

31/07 2017

4.0.4

4.0.4.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

25/07 2017

4.0.3

4.0.3.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

11/07 2017

4.0.2

4.0.2.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

29/06 2017

4.0.1

4.0.1.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

23/06 2017

4.0.0

4.0.0.0 http://github.com/symbiote/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

19/04 2017

3.0.1

3.0.1.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

09/03 2017

3.0.0

3.0.0.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

09/03 2017

2.0.x-dev

2.0.9999999.9999999-dev http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

14/12 2016

2.0.4

2.0.4.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

01/12 2016

1.2.x-dev

1.2.9999999.9999999-dev http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

01/12 2016

1.2.5

1.2.5.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

12/11 2016

2.0.3

2.0.3.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

21/07 2016

2.0.2

2.0.2.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

19/07 2016

2.0.1

2.0.1.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

29/02 2016

1.2.4

1.2.4.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

01/02 2016

2.0.0

2.0.0.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

07/01 2016

1.2.3

1.2.3.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

14/12 2015

1.2.2

1.2.2.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

11/12 2015

1.2.1

1.2.1.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

27/11 2015

1.1.x-dev

1.1.9999999.9999999-dev http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

27/11 2015

1.2.0

1.2.0.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

22/10 2015

1.1.2

1.1.2.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

30/07 2015

1.1.1

1.1.1.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

23/07 2015

1.1.0

1.1.0.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

15/07 2015

1.0.5

1.0.5.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

15/07 2015

1.0.x-dev

1.0.9999999.9999999-dev http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

10/06 2015

1.0.4

1.0.4.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

28/05 2015

1.0.3

1.0.3.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

07/04 2015

1.0.2

1.0.2.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

04/02 2015

1.0.1

1.0.1.0 http://github.com/silverstripe-australia/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

silverstripe subsites multisites

14/01 2015
19/09 2013

dev-aware

dev-aware http://github.com/sheadawson/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

by Andrew Short
by Shea Dawson

silverstripe subsites multisites

11/09 2013

dev-aucwp

dev-aucwp http://github.com/sheadawson/silverstripe-multisites

Allows for multiple websites to be managed through a single site tree.

  Sources   Download

The Requires

 

by Andrew Short
by Shea Dawson

silverstripe subsites multisites