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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a58dc4cde5449c0460f99e255e53c248f18dc91f5e8b67983eeec697ba1d1f |
|
MD5 | 84ae025d83c426a57e8fc96f214f967b |
|
BLAKE2b-256 | 106ead5ede666322f7977d3b792458b4db81e36bc6517165142757969c5fa1ca |