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.

djangocms-cascade

Navigation

  • 1. For the Impatient
  • 2. Introduction
  • 3. Installation
  • 4. Link Plugin
  • 5. Plugins for Bootstrap-3
    • 5.1. Gallery
    • 5.2. Bootstrap 3 Grid system
    • 5.3. HTML5 <picture> and the new <img> elements
    • 5.4. Template tag for the Bootstrap3 Navbar
    • 5.5. Panel element
    • 5.6. Jumbotron
    • 5.7. Tab Sets
    • 5.8. Secondary menu
  • 6. Using Fonts with Icons
  • 7. Map Plugin using the Leaflet frontend
  • 8. Handling the client side
  • 9. Section Bookmarks
  • 10. Segmentation of the DOM
  • 11. Working with sharable fields
  • 12. Customize CSS classes and inline styles
  • 13. Choose an alternative rendering template
  • 14. Conditionally hide some plugin
  • 15. The CMS Clipboard
  • 16. Use Cascade outside of the CMS
  • 17. Integrate Sphinx Documentation
  • 18. Extending Cascade
  • 19. Generic Plugins
  • 20. Release History

Related Topics

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

Quick search

©Copyright 2019, Jacob Rief. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source