diff --git a/README.md b/README.md index 43fe04e..a0cd38e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ Use one of these three methods to install the plugin: - `composer require mauricerenck/pexelsimagefield` - unzip [master.zip](https://github.com/mauricerenck/pexels-image-field/releases/latest) to `site/plugins/pexels-image-field` -- `git submodule add https://github.com/mauricerenck/pexels-image-field.git site/plugins/pexels-image-field` * [Setup the plugin](docs/setup.md) * [See all options](docs/options.md) diff --git a/docs/options.md b/docs/options.md index 021f6d9..1b9bffc 100644 --- a/docs/options.md +++ b/docs/options.md @@ -1,4 +1,5 @@ -| option | default | description | -| ------ | ------- | -------------------------------------- | -| images | 12 | Set a number of images | -| apiKey | '' | See: https://www.pexels.com/de-de/api/ | \ No newline at end of file +| option | default | description | +| ------------ | ------- | ----------------------------------------------------------------------- | +| images | 12 | Set a number of images | +| apiKey | '' | See: https://www.pexels.com/de-de/api/ | +| downloadSize | 'large' | 'tiny', 'small', 'medium', 'large', 'portrait', 'landscape', 'original' | \ No newline at end of file diff --git a/docs/setup.md b/docs/setup.md index 7d69f24..408290b 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -11,4 +11,5 @@ fields: label: Pexels ``` -You can modify the number of images shown using `'mauricerenck.PexelsImageField.images' => '12'` \ No newline at end of file +You can modify the number of images shown using `'mauricerenck.PexelsImageField.images' => '12'` +You can modify the size of the downloaded image using `'mauricerenck.PexelsImageField.downloadSize' => 'medium'` (see options for all sizes) \ No newline at end of file