All Projects → django-cms → cmsplugin-filer

django-cms / cmsplugin-filer

Licence: BSD-3-Clause license
DEPRECATED, this project is no longer maintained, see README for more information.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cmsplugin-filer

jest-badges-readme
Creates a group of coverage badges from Jest into your README
Stars: ✭ 30 (-76.38%)
Mutual labels:  deprecated
node-pagerduty
⛔️ DEPRECATED - PagerDuty v2 API Wrapper for Node
Stars: ✭ 19 (-85.04%)
Mutual labels:  deprecated
summit2016-RankingPredict
Deprecated, No more maintained - Deprecated, no longer maintained
Stars: ✭ 34 (-73.23%)
Mutual labels:  deprecated
resizeend
Debounced JavaScript resize events
Stars: ✭ 60 (-52.76%)
Mutual labels:  deprecated
homebridge-mi-ac-partner
[DEPRECATED] A Xiaomi Mi ac partner plugin for Homebridge.
Stars: ✭ 29 (-77.17%)
Mutual labels:  deprecated
aliyun-direct-mail
[DEPRECATED] 阿里云 DirectMail for Laravel.
Stars: ✭ 26 (-79.53%)
Mutual labels:  deprecated
SAUCE
⛔️ DEPRECATED - System for AUtomated Code Evaluation
Stars: ✭ 25 (-80.31%)
Mutual labels:  deprecated
gulp-styl
Preprocess CSS with Styl
Stars: ✭ 21 (-83.46%)
Mutual labels:  deprecated
lazybones-aem-templates
🚨[DEPRECATED] Lazybones templates for Adobe Experience Manager🚨
Stars: ✭ 68 (-46.46%)
Mutual labels:  deprecated
npmlint
[DEPRECATED] Lint your npm package
Stars: ✭ 57 (-55.12%)
Mutual labels:  deprecated
webpack-react-boilerplate
A boilerplate for using webpack and react.
Stars: ✭ 33 (-74.02%)
Mutual labels:  deprecated
snapup-android
Android application to take photos, then post them using the Meetup API.
Stars: ✭ 14 (-88.98%)
Mutual labels:  deprecated
django-snow
ServiceNow Ticket Management App for Django based projects
Stars: ✭ 16 (-87.4%)
Mutual labels:  deprecated
roweb
⛔ [DEPRECATED] Active at https://github.com/ropensci/roweb2
Stars: ✭ 18 (-85.83%)
Mutual labels:  deprecated
biggus
⛔ [DEPRECATED] Virtual large arrays and lazy evaluation.
Stars: ✭ 56 (-55.91%)
Mutual labels:  deprecated
tls
🔒 Non-blocking, event-driven TLS built on OpenSSL & macOS security.
Stars: ✭ 26 (-79.53%)
Mutual labels:  deprecated
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-88.98%)
Mutual labels:  deprecated
DeepDIVA
⛔️ DEPRECATED <Python Framework for Reproducible Deep Learning Experiments>
Stars: ✭ 32 (-74.8%)
Mutual labels:  deprecated
Optimizely-iOS-SDK
Optimizely Classic iOS SDK. For Optimizely X Mobile go here:
Stars: ✭ 31 (-75.59%)
Mutual labels:  deprecated
inclusify
DEPRECATED - Go CLI which can be used to update the default branch name on any GitHub repo
Stars: ✭ 36 (-71.65%)
Mutual labels:  deprecated

Deprecated

This project is no longer supported.

Divio will undertake no further development or maintenance of this project. If you are interested in taking responsibility for this project as its maintainer, please contact us via www.divio.com.

Please have a look at the following forks or alternatives:

cmsplugin-filer

A set of cms plugins that replace the plugins shipped with django-cms with versions that use file fields from django-filer.

Warning:

Starting with version 1.1.0, support for Python 2.6, Django 1.7 or lower
and django CMS 3.0.x and lower was dropped. Please pin your dependencies
to ``cmsplugin-filer<1.1.0`` for older projects.

Starting with version 0.10 support for django CMS 2.x was dropped
(table renaming magic removal). Pin your dependencies to
``cmsplugin-filer<0.10`` for django-cms 2.x projects.

Dependencies

  • django-filer >= 1.2
  • Django >= 1.8
  • django-cms >= 3.1
  • django-sekizai >= 0.4.2
  • easy_thumbnails >= 1.0
  • django-appconf
  • djangocms-attributes-field

Installation

To get started using cmsplugin-filer:

  • install it with pip:

    $ pip install cmsplugin-filer
    
  • configure django-filer as documented in https://django-filer.readthedocs.io/en/latest/installation.html#configuration

  • add the plugins to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'cmsplugin_filer_file',
        'cmsplugin_filer_folder',
        'cmsplugin_filer_link',
        'cmsplugin_filer_image',
        'cmsplugin_filer_teaser',
        'cmsplugin_filer_video',
        ...
    )
    
  • run migrate.

You can also set FILER_IMAGE_USE_ICON in your settings.py to configure cmsplugin_filer_image plugin to use 32x32 icons for representing plugin instances.

The default template in cmsplugin_filer_image expects the subject location functionality to be enabled. Follow: https://django-filer.readthedocs.io/en/latest/installation.html#subject-location-aware-cropping

Upgrading to version 1.1

In version 1.1 there are two backward incompatible changes:

Migrations layout

Migrations have been moved back to the standard location. cmsplugin_filer related MIGRATION_MODULE setting items must be removed for cmsplugin_filer 1.1 to work

Removal of ThumbnailOption model

ThumbnailOption has been moved to filer (since filer 1.2). You must update your models and migrations referencing ThumbnailOption for this to work.

Upgrade process involves updating your models and migrations.

model.py

Add:

try:
    from filer.models import ThumbnailOption
    thumbnail_model = 'filer.ThumbnailOption'
except ImportError:
    from cmsplugin_filer_image.models import ThumbnailOption
    thumbnail_model = 'cmsplugin_filer_image.ThumbnailOption'

If you use the string syntax (e.g.: thumb_field = models.ForeignKey('cmsplugin_filer_image.ThumbnailOption')) use thumbnail_model string as defined above (e.g.: thumb_field = models.ForeignKey(thumbnail_model) If using the model directly you don't have to change the fields definition

Django 1.7+ migrations

For every migration file that references ThumbnailOption add the following import:

from myapp.models import thumbnail_model

and change all 'cmsplugin_filer_image.ThumbnailOption' to thumbnail_model

South migrations

In every migration file add the following import:

from myapp.models import thumbnail_model

and change all 'cmsplugin_filer_image.ThumbnailOption' to thumbnail_model and u"orm['cmsplugin_filer_image.ThumbnailOption']" to u"orm['%s']" % thumbnail_model.

The default template in cmsplugin_filer_image expects the subject location functionality to be enabled. Follow: http://django-filer.readthedocs.org/en/0.9.2/installation.html#subject-location-aware-cropping

Please note that current develop version moved plugin packages from src directory to project root. This may break your installation if upgrading. Uninstall any previous cmsplugin_filer installation (either from PyPI or from github repository) and reinstall it.

Integrations

djangocms-text-ckeditor

cmsplugin_filer_image provides integration with djangocms-text-ckeditor. Add this setting to enable it:

TEXT_SAVE_IMAGE_FUNCTION='cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'

This allows dragging images into the text editor in Firefox and newer versions of IE.

Customisation

Most plugins (file, folder, image and teaser) support configuring custom "styles" (templates).

e.g add the following settings for the image plugin:

CMSPLUGIN_FILER_IMAGE_STYLE_CHOICES = (
    ('default', 'Default'),
    ('boxed', 'Boxed'),
)
CMSPLUGIN_FILER_IMAGE_DEFAULT_STYLE = 'boxed'

Now, if a template exists at cmsplugin_filer_image/plugins/image/boxed.html it will be used. If not, it will fall back to cmsplugin_filer_image/plugins/image/default.html. If a css class in the default template is enough, it can be used in the template as {{ instance.style }}.

For backwards compatibility the plugin will always use cmsplugin_filer_image/image.html if it exists. Remove that template after migrating to the new structure.

Classes

Classes like left, center, right and img-responsive are given by the plugin to use in your own projects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].