simple implementation of gallery for feincms
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for feincms_simplegallery-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8493f7aab6a450f5ebbd511b5a1df88ceec2a879759b7371575fe4f79aa9803c |
|
MD5 | b8728d349955080fe04c7686250fab60 |
|
BLAKE2b-256 | 675bdee48a9e45827bc2b70d2a01290495d869948c996c806120ac63a6785286 |
Close
Hashes for feincms_simplegallery-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 894fafc4bd549f90545187adbb7cb704cac77158b6ae7baa84d3197c1c401ebf |
|
MD5 | 3430ecd16475471d2186d85a09f3db86 |
|
BLAKE2b-256 | 954e0a019c90f4c290a85bf7dd30d427d92542123b8fa206dda818e4a64dd99f |