Skip to main content

CMS placeholder can recieve dragged files and add to plugin by files extensions.

Project description

CMS Draggable Files

This application will recieve dragged files on django-cms placeholder and save them to cms.plugin.picture or cms.plugin.file. This plugin checks what file extension is dragged.

This application will make Yours life esier. Tutorial:

Install aplication: pip install cms-draggable-files

Add to installed app: ‘cms_draggable_files’

Add static files to base.html (or to main html file in your project): /static/css/placeholder.css /static/js/draggable.js

Copy template folder instance to your main project folder. Be shour that placeholder.html from cms_draggable_files is in your template/cms/placeholder.html.

Add cms-draggable-files to your project urls.py: $ url(r’^’, include(‘cms_draggable_files.urls’)),

If You want additional custom file creator that for example will convert files from odf to pdf on drag and drop, You need in settings register your custom creator class: DRAGGABLE_ADDITIONAL_PLUGIN_CREATORS = [ ODF_TO_PDF_CREATOR, ]

Enjoy drag and drop files future in django-cms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cms-draggable-files-0.1.6.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file cms-draggable-files-0.1.6.tar.gz.

File metadata

File hashes

Hashes for cms-draggable-files-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cd2d71b4df978deacecb9aeb56b66d3a135c4833629ef4d9172740a69dc83927
MD5 d630cc6d3c577a20fca7159069f74976
BLAKE2b-256 4e90550651a4e0fa51e8885752808222607529e93ac9625edd75b0a5ff51eb5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page