Skip to content

Latest commit

 

History

History
22 lines (9 loc) · 979 Bytes

README.md

File metadata and controls

22 lines (9 loc) · 979 Bytes

Multi cdn for assets for Craft CMS

Installation

  1. Go to the settings of the plugin and set the url(s) for the cdn path in the field "Environment Variable cdnUrl". Use comma separated uri's' for multiple cdn's.

plugin_settings

  1. Make sure that the assets path is relative. The cdn path will be prepended at the front of the assets path.

assets_settings

  1. Use in templates the twig filter "cdnUrl" for the media/assets url to get the cdn path(s).

twig_filter