5.1. Gallery¶

A gallery is a collection of images displayed as a group. Since it normally consists of many similar images, djangocms-cascade does not require to use child plugins for each image. Instead they can be added directly to the Bootstrap Gallery Plugin. Here, djangocms-cascade uses a special model, named cmsplugin_cascade.models.InlineCascadeElement which also uses a JSON field to store it’s payload. It thus can be configured to accept any kind of data, just as it’s counterpart cmsplugin_cascade.models.CascadeElement does.

Since plugin editors are based on Django’s admin backend, the Gallery Plugin uses the Stacked Inline formset to manage it’s children. If django-admin-sortable2 is installed, the entries in the plugin can even be sorted using drag and drop.

Related Topics

  • Documentation overview
    • 5. Plugins for Bootstrap-3
      • Previous: 5. Plugins for Bootstrap-3
      • Next: 5.2. Bootstrap 3 Grid system

This Page

  • Show Source

Quick search

©Copyright 2018, Jacob Rief. | Powered by Sphinx 1.7.4 & Alabaster 0.7.10 | Page source