Skip to main content
https://travis-ci.org/tdsymonds/djangocms-flexslider.svg?branch=master https://coveralls.io/repos/github/tdsymonds/djangocms-flexslider/badge.svg?branch=master&t=1 https://img.shields.io/badge/pypi-v1.0.0-blue.svg https://img.shields.io/badge/license-MIT%20License-red.svg

djangocms-flexslider

This is a simple django-cms plugin that implements the JavaScript FlexSlider library.

Dependencies

  • django>=1.8

  • django-cms>=3.2

Installation

To install:

pip install djangocms-flexslider

Then add djangocms-flexslider to your installed apps:

INSTALLED_APPS = [
    ...
    'djangocms_flexslider',
    ...
]

If you’re not already using django-filer, easy-thumbnails and djangocms-text-ckeditor then these too will need to be added to your installed apps:

INSTALLED_APPS = [
    ...
    'djangocms_text_ckeditor',
    'easy_thumbnails',
    'filer',
    ...
]

And run the migrations:

./manage.py migrate

The package assume that jQuery has been added to the site already. So if you’re not using already, please add to you templates/base.html:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

Configuration

The FlexSlider JS and CSS are by default loaded from the below CDN. If you wish to override this, this can be done in your settings.py file by adding the below with your updated URLs. This is optional.

DJANGOCMS_FLEXSLIDER = {
    'JS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/jquery.flexslider.min.js',
    'CSS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/flexslider.min.css'
}

Usage

The slider plugin is added to page, where the configuration for the slider is set. The settings allow you to add a carousel thumbnail slider if you wish, you are also provided the ability to pass the JSON config for both the carousel and the slider.

There are many FlexSlider examples on their site, or you can view the full FlexSlider properties. The configuration JSON object is optional, so you have no obligation to provide this. A simple example of the config with a carousel is provided below.

Once the slider has been setup, slides are added by adding child slide plugins to the slider. Each slide has to have an image, (I’ve used django-filer for the images), and can optionally have an explicit height and/or width, a caption, url link or page link as well.

Example JSON Config

Slider:

{
  animation: "slide",
  smoothHeight: true,
  controlNav: false,
  animationLoop: false,
  slideshow: false,
  sync: "#carousel"
}

Carousel:

{
  animation: "slide",
  controlNav: false,
  animationLoop: false,
  slideshow: false,
  itemWidth: 210,
  itemMargin: 5,
  asNavFor: '#slider'
}

Metadata

Release files for djangocms-flexslider 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangocms-flexslider 1.0.0
File Size Uploaded Provenance Actions
djangocms-flexslider-1.0.0.tar.gz 120.3 kB Without provenance Details for djangocms-flexslider-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-flexslider 1.0.0
File Interpreter ABI Platform Actions
djangocms_flexslider-1.0.0-py2-none-any.whl Python 2 none any Details for djangocms_flexslider-1.0.0-py2-none-any.whl

Total release size: 252.9 kB

Release files / djangocms-flexslider-1.0.0.tar.gz

Download URL djangocms-flexslider-1.0.0.tar.gz
Size 120.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a922eb6709a2e66e0c33065ac6933c4e0b8f5bbd156ab9d9c349f2c6d932889d
BLAKE2b-256 checksum
How to use checksums
13f84339b215c311e062cc604112945d1458961e2cd6207824f063724fadd7da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangocms_flexslider-1.0.0-py2-none-any.whl

Download URL djangocms_flexslider-1.0.0-py2-none-any.whl
Size 132.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4595a4fafc4942d7831db1810eedd3ebe648945db35d0bc7a1f8c80605bed525
BLAKE2b-256 checksum
How to use checksums
08c7f4fc644bcf19546b5495b4eaacfd911ad47a07d413f2bb0226ca8044b78e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for djangocms-flexslider 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page