CDN Manager Docs
IMPORTANT: Before installing, enabling, disabling or un-installing CDN Manager, disable "overrides cache" in the concrete5 dashboard located here.
Dashboard > System & Settings > Optimization > Cache & Speed settings
Once CDN Manager is installed, enabled, disabled or un-installed, overrides cache can be re-enabled.
1) After you connect your site to the marketplace, a project page is automatically created for your domain.
Visit the project page on concrete5.org and attach CDN Manager to the project.
My Account > Projects
2) Visit the install page located in your concrete5 dashboard and click install next to CDN Manager.
After installation is complete, go back to your concrete5 dashboard and notice the two new links that are available.
The CDN settings page is where you set your CDN URL.
To enable the CDN, input your temp or custom CDN URL (including http://), set the status to "on" then click save.
Upon clicking save, a built in function checks to make sure that the CDN is resolving correctly. If the CDN is not resolving, this field won't save and will be left blank.
We will be including support for additional CDN's in future versions of CDN Manager. This page may include additional settings to support these CDN's.
Max CDN API
The Max CDN API provides access to your MAX CDN account right from your concrete5 dashboard.
There is no need to visit the maxcdn.com portal everytime you need to perform simple actions such as clearing the CDN cache.
To enable the Max CDN API, first log in your max CDN account and configure your API here.
1) Obtain your "Alias" under "Your API Info"
2) Click Create Application
3) Input a name and description for your application. (Can be anything you like)
NOTE: Application URL and Callback URL are not used or required at this time.
4) Click "Register Application"
5) After clicking "register application", obtain your "Consumer Key" and "Consumer Secret"
Now visit the "Max CDN API" page located in your concrete5 dashboard.
Input your "Alias", "Consumer Key" and "Consumer secret" then click save.
CDN Manager for concrete5 comes with custom templates for the default Image, Video and File Blocks to offer complete CDN integration.
These custom templates force these blocks to load their contents from the CDN.
After adding one of these blocks to a page, while still in edit mode, click on the block and from the pop up select "custom template".
Select "CDN" from the drop selection then click save.
Exit edit mode, publish edits.
<?php define('CDN_URL', 'http://cdn.hostco.com');?>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo CDN_URL; ?>/static-path/style.css" />