elefant / app-filepicker
Filepicker app for the Elefant CMS
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:elefant-app
Requires
This package is auto-updated.
Last update: 2024-10-25 06:19:01 UTC
README
This is a simple Filepicker.io app for the Elefant CMS.
Usage:
1. Install the app into your apps folder:
git clone git@github.com:jbroadway/filepicker.git apps/filepicker
2. Add your API key to apps/filepicker/conf/config.php
.
3. Create an upload field in your handlers or views:
{! filepicker/my_field_name?mimetypes=image/* !}
To enable drag & drop, use:
{! filepicker/my_field_name?dragdrop=1 !}
Or from any handler, use:
echo $this->run ('filepicker/my_field_name', array ( 'mimetypes' => 'image/*', 'option-services' => 'COMPUTER,DROPBOX,GOOGLE_DRIVE,URL', 'dragdrop' => true, 'onchange' => 'console.log(event)' ));
Note that you can skip the
data-fp-
prefix on option names.
See here for all available options: