mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
DOCS Add Scrutinizer and codecov badges to readme
This commit is contained in:
parent
0f5c6008e1
commit
05953f1758
@ -1,6 +1,6 @@
|
||||
# Subsites Module
|
||||
|
||||
[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-subsites.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-subsites)
|
||||
[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-subsites.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-subsites) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-subsites/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-subsites/?branch=master) [![codecov](https://codecov.io/gh/silverstripe/silverstripe-subsites/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-subsites)
|
||||
|
||||
## Introduction
|
||||
|
||||
@ -44,9 +44,9 @@ For user documentation please see:
|
||||
* However, you can remove page types from a subsite when creating the subsite - [see the setup documentation for further details](docs/en/userguide/set_up.md)
|
||||
* The only code a developer can edit between subsites is the theme
|
||||
* The separation between subsites in the CMS needs to be seen as cosmetic, and mostly applicable to the "Pages" and "Files" sections of the CMS.
|
||||
* All subsites run in the same process space and data set. Therefore if an outage affects one subsite it will affect all subsites, and if bad code or hardware corrupts one subsite's data, it's very likely that it has corrupted all subsite data.
|
||||
* All subsites run in the same process space and data set. Therefore if an outage affects one subsite it will affect all subsites, and if bad code or hardware corrupts one subsite's data, it's very likely that it has corrupted all subsite data.
|
||||
* This principle applies to application error, security vulnerabilities and high levels of traffic
|
||||
* It is not currently possible to backup or restore the data from a single subsite.
|
||||
* It is not currently possible to backup or restore the data from a single subsite.
|
||||
* It is awkward (but not impossible) to have separate teams of developers working on different subsites - primarily because of the level of collaboration needed. It is more suited to the same group of developers being responsible for all of the subsites.
|
||||
|
||||
If more isolation of code, security, or performance is needed, then consider running multiple separate installations (e.g. on separate servers).
|
||||
@ -136,7 +136,7 @@ To limit your admin gridfields to the current Subsite records, you can do someth
|
||||
:::php
|
||||
public function getEditForm($id = null, $fields = null){
|
||||
$form = parent::getEditForm($id, $fields);
|
||||
|
||||
|
||||
$gridField = $form->Fields()->fieldByName($this->sanitiseClassName($this->modelClass));
|
||||
if(class_exists('Subsite')){
|
||||
$list = $gridField->getList()->filter(array('SubsiteID'=>Subsite::currentSubsiteID()));
|
||||
@ -189,4 +189,3 @@ for all subdomains:
|
||||
## Screenshots
|
||||
|
||||
![](docs/en/_images/subsites-module-adminscreenshot.png)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user