🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

feincms-simplegallery

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feincms-simplegallery

simple implementation of gallery for feincms

0.3.1
Maintainers
1

===================== feincms_simplegallery

feincms_simplegallery is a simple implementation of gallery for feincms

Quick start

  • Add "feincms_simplegallery" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = ( ... 'feincms_simplegallery', )

  • If you intend to use it as feincms content type, register GalleryContent for your Page model (or any other Base-derived model) like this::

    from feincms_simplegallery.models import GalleryContent

    ...

    Page.create_content_type(GalleryContent)

  • (optional) It is possible to define TYPE_CHOICES for GalleryContent if you want to render galleries using different templates::

    from feincms_simplegallery.models import GalleryContent

    ...

    Page.create_content_type(GalleryContent, TYPE_CHOICES=( ('default', 'default template'), ('other', 'some other template'), # ... (other types) ) )

    galleries will be rendered as either of these, depending on admin choice:

    templates/content/feincms_simplegallery/default.html

    templates/content/feincms_simplegallery/other.html

    ...

    Some of the templates (grid and lightbox) are bundled with the plugin

  • Migrate your models

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts