2017 © Pedro Peláez
 

craft-plugin npcloudinary

A simple way to let Craft CMS and Cloudinary interact

image

nilsenpaul/npcloudinary

A simple way to let Craft CMS and Cloudinary interact

  • Wednesday, June 14, 2017
  • by nilsenpaul
  • Repository
  • 4 Watchers
  • 11 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NP Cloudinary plugin for Craft CMS

A simple way to let Craft CMS and Cloudinary interact., (*1)

Installation

To install NP Cloudinary, follow these steps:, (*2)

  1. Download & unzip the file and place the npcloudinary directory into your craft/plugins directory and run composer update from the plugin's folder.
  2. -OR- do a git clone https://github.com/nilsenpaul/npcloudinary.git directly into your craft/plugins folder. You can then update it with git pull. After that, run composer update from the plugin's folder.
  3. -OR- install with Composer via composer require nilsenpaul/npcloudinary
  4. Install plugin in the Craft Control Panel under Settings > Plugins
  5. The plugin folder should be named npcloudinary for Craft to see it. GitHub recently started appending -master (the branch name) to the name of the folder for zip file downloads.

NP Cloudinary works on Craft 2.4.x and Craft 2.5.x, with PHP >= 5.4.x., (*3)

NP Cloudinary Overview

This plugin lets you use Cloudinary's advanced image magic from within your Craft CMS Twig templates., (*4)

Configuring NP Cloudinary

Just add your Cloudinary Api key, secret and Cloud name to this plugin's settings., (*5)

Using NP Cloudinary

This plugin uploads (copies) your assets to your Cloudinary account, on upload. If you want it to, it will also delete the files whenever you do so in Craft CMS. To show one of your assets from a template, use the plugin's variable., (*6)

{% set asset = craft.assets.id(95).first() %}
{{ craft.npcloudinary.img(asset, {
    responsive: true,
    width: 'auto',
    height: 325,
    crop: 'fill',
    gravity: 'auto',
    quality: 'auto',
    fetch_format: 'auto',
}) | raw }}

All options are passed to Cloudinary's API. If you want to use Cloudinary's responsive features, be sure to add:, (*7)

<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width"> 

... to your header., (*8)

NP Cloudinary Changelog

1.0.0 -- 2016.07.13

  • Initial release

The Versions

14/06 2017

dev-master

9999999-dev

A simple way to let Craft CMS and Cloudinary interact

  Sources   Download

MIT

The Requires

 

13/07 2016

1.0.0

1.0.0.0

A simple way to let Craft CMS and Cloudinary interact

  Sources   Download

MIT

The Requires