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_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
File details
Details for the file djangocms-css-background-1.0.4.tar.gz.
File metadata
- Download URL: djangocms-css-background-1.0.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5953fd55fdaf07c0060b36fe2bb8ce4abfe306b7235180758e215977b2ba87d
|
|
| MD5 |
2eed26404fed601816c2dfb712316b82
|
|
| BLAKE2b-256 |
1c81f7862c3d96e32c3dee2357b4799f66c7eeea1e1777142828012ca456b07e
|