sunlab/wn-unsplashpicker-plugin

An Unsplash Image Picker form widget

Installs: 41

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Language:JavaScript

Type:winter-plugin

dev-main 2021-05-09 18:47 UTC

This package is auto-updated.

Last update: 2024-12-11 10:07:21 UTC


README

This plugin allows you to upload image directly through the Unsplash API.

Requirements

To use this plugin, you'll need to create an account on Unsplash.com and fill your credentials on the backend settings

How to use

When you want to display the widget, just use it in your fields.yaml file on an attachMany or attachOne relationship. UnsplashPicker is an extension of FileUpload widget, you can use the same options:

form:
    fields:
        featured_images:
            label: Featured images
            type: unsplashpicker
            imageHeight: 260
            imageWidth: 260
            maxFilesize: 12
            attachOnUpload: true