Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit f5d7399

Browse files
updating the docs
1 parent 13d429b commit f5d7399

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,27 @@ Easy Cloudinary for ExpressionEngine
33

44
ExpressionEngine Plugin to automate use of the Cloudinary
55

6-
The API
7-
-------
6+
Setting it up
7+
-------------
8+
9+
All configuration of this plugin happens in your ExpressionEngine Configuration file:
10+
11+
```php
12+
$config['easy_cloudinary'] = array(
13+
'cloud_name' => 'YOUR_CLOUDINARY_CLOUD_NAME',
14+
'template' => '<img src="https://res.cloudinary.com/{cloud_name}/image/fetch/f_auto,q_auto/{image_url}" {attributes}>'
15+
);
16+
```
17+
18+
Once you have that in place, you simply wrap the content you want to adjust. All images will be processed through Cloudinary.
19+
20+
```mustache
21+
{exp:easy_cloudinary}
22+
YOUR CONTENT
23+
{/exp:easy_cloudinary}
24+
```
825

26+
Any images (local or remote) will be swapped for Cloudinary-handled ones using the template you set up in the config file.
927

1028
License
1129
-------

system/expressionengine/third_party/easy_cloudinary/pi.easy_cloudinary.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ function usage()
190190
);
191191
```
192192

193+
Once you have that in place, you simply wrap the content you want to adjust. All images will be processed through Cloudinary.
194+
195+
{exp:easy_cloudinary}
196+
YOUR CONTENT
197+
{/exp:easy_cloudinary}
198+
199+
Any images (local or remote) will be swapped for Cloudinary-handled ones using the template you set up in the config file.
200+
193201
<?php
194202
$buffer = ob_get_contents();
195203
ob_end_clean();

0 commit comments

Comments
 (0)