A django-cms plugin which allow you to edit css background image or color from the edit mode
Project description
Description
djangocms-css-background is a django-cms plugin which allow you to edit css background image or color from the edit mode
Depends
Installation
use pip pip install djangocms-css-background
Syncronize the models: python manage.py syncdb (with south or django 1.7 use migrations)
Put in your INSTALLED_APPS: INSTALLED_APPS += ('djangocms-css-background', )
Usage
you can define your template like this:
{% load placeholder_tags placeholder_attr %}
<div style="{% placeholder_attr 'My Background Css Placeholder' 'CssBackground' 'css_background' %}">
{% placeholder 'My Background Css Placeholder' %}
</div>
remember to set the same name of a placeholder in the placeholder_attr name parameter.
after that set the provide a CSS Background plugin for this placeholder, and chose an image, or set rgb or rgba for a colored background
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
Hashes for djangocms-css-background-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e8e52a92aa9eed5f6e60db0b1e7d6f9927d76f844f703d3dd6e34dc3a2f16f |
|
MD5 | 7086199f0d146d02d8bd61abb3ce0611 |
|
BLAKE2b-256 | 47c534834cdf553c43741bf6dda1f20e69801afb6ffe7a507d5e4937d197c64b |