symbiote/silverstripe-cdncontent

A module that uses the content-services module for mapping Files and/or theme content from the CMS to compatible CDNs.

Maintainers

👁 symbiote

Package info

github.com/symbiote/silverstripe-cdncontent

Type:silverstripe-module

pkg:composer/symbiote/silverstripe-cdncontent

Statistics

Installs: 3 248

Dependents: 2

Suggesters: 0

Stars: 8

Open Issues: 2

3.2.3 2020-06-22 04:57 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

BSD-3-Clause 87624301cf1830cb6d6ad1250e4fc45c90624149

  • Marcus Nyeholt <marcus.woop@symbiote.com.au>

filethemescdnsilverstripe


README

A module that allows the assets for a theme to be stored on a CDN

Overview

Provides a few CDN related pieces of functionality

  • Store assets from Files & Images in a specified CDN
  • Store theme related assets in a configured CDN

Requirements

Installation

  • Add the following extensions
File:
 extensions:
 - CDNFile
Folder: 
 extensions:
 - CDNFolder
# If using the Versioned Files module
FileVersion:
 extensions:
 - CDNFile
  • Configure the locations for storing content items
 ContentService:
 constructor:
 defaultStore: S3DevBucket
 properties:
 stores:
 FileCDN:
 ContentReader: FileContentReader
 ContentWriter: FileContentWriter

Note: In this case, ContentReader and ContentWriter should be the names of other items configured in the injector - the default contentservices.yml defines the above ones as

---
Name: contentservices
---

Injector:
 FileContentReader:
 type: prototype
 properties:
 basePath: mycontent
 FileContentWriter:
 type: prototype
 properties:
 basePath: mycontent