/silverstripe-cdncontent

A module for storing assets and themes in a CDN

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

CDN Theme module

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

  • In your local configuration, add

ShortcodeParser::get('default')->register('embed', array('CdnEmbedder', 'handle\_shortcode'));

to ensure the cdn is manipulated for resized images because SS treats CDN sourced content as an embed tag. This may be addressed in a future commit

  • Add the following extensions
File:
  extensions:
    - CDNFile
Folder: 
  extensions:
    - CDNFolder