Skip to main content

djangocms-cameraslider

This is a simple django-cms_ plugin that implements the jQuery Camera Slider/Slideshow library.

Dependencies

  • django>=3.2
  • django-cms>=3.9

Installation

To install::

pip install djangocms-cameraslider

Then add djangocms-cameraslider to your installed apps::

INSTALLED_APPS = [
    ...
    'djangocms_cameraslider',
    ...
]

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:

.. code:: html

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

Configuration

The Camera Slider 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.

.. code:: python

DJANGOCMS_CAMERASLIDER = {
    'JS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/Camera/1.3.4/scripts/camera.min.js',
    'CSS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/Camera/1.3.4/css/camera.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 Camera Slider examples_ on their site, or you can view the full Camera Slider 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.

.. _django-cms: https://github.com/divio/django-cms .. _Camera Slider: https://www.jqueryscript.net/slideshow/Camera-Slideshow-Plugin.html .. _Camera Slider examples: https://www.jqueryscript.net/demo/Camera-Slideshow-Plugin/demo/ .. _Camera Slider properties: https://www.jqueryscript.net/slideshow/Camera-Slideshow-Plugin.html .. _django-filer: https://github.com/divio/django-filer .. _easy-thumbnails: https://github.com/SmileyChris/easy-thumbnails .. _djangocms-text-ckeditor: https://github.com/divio/djangocms-text-ckeditor

Metadata

Release files for djangocms-cameraslider 1.0.2

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-cameraslider 1.0.2
File Size Uploaded
djangocms-cameraslider-1.0.2.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-cameraslider 1.0.2
File Interpreter ABI Platform
djangocms_cameraslider-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.3 kB

Release files / djangocms-cameraslider-1.0.2.tar.gz

Download URL djangocms-cameraslider-1.0.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dba008c5ef93b4eeef51efa4e132b571d875c146b1d42ec8a488194dfce7b9ad
BLAKE2b-256 checksum
How to use checksums
0f5725260802b66113385112c30d48e907c6147052fe88752aa0b57369bb96d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / djangocms_cameraslider-1.0.2-py3-none-any.whl

Download URL djangocms_cameraslider-1.0.2-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
222f94dafcc15a9b8391403ceb5f6954bec158aace16b98bee108a4acbc4504b
BLAKE2b-256 checksum
How to use checksums
72595b2f19322d61f4828d77f9d13d428b7e5901e728bd3beb1a39fa22cf9644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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