Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.17 KB

File metadata and controls

45 lines (33 loc) · 1.17 KB

Mediaflow plugin for Craft

Craft CMS Keyteq Mediaflow plugin. Read more Visit Mediaflow!

Install

The easy and clean way

  1. composer require mediaflow/mediaflow-craft:~1.0

  2. Modify your public/index.php to autoload depdendencies by adding this as the second to last line:

    require __DIR__ . '/../vendor/autoload.php';

    This is only required once for all plugins using composer

The hard Crafty way

  1. Open the list of releases
  2. Download the zip file for the desired release
  3. Unpack the zip file to plugins/mediaflow/

Example of usage

Generating a media preview URL

<img src="{{entry.mediaflowField.url({width: 100,height: 100}) }}" />

Example with Foundation Interchange

{% set media = entry.mediaflowField %}
<img data-interchange="
    [{{ media.url({width:width,height:height,quality:90}) }}, (default)],
    [{{ media.url({width:width,height:height,quality:90}) }}, (large)]
">
<noscript>
    <img src="{{media.url({width:width,height:height,quality:90}) }}">
</noscript>

Using Picturefill.js