CSS Background
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
Metadata
Release files for djangocms-css-background 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| djangocms-css-background-1.0.4.tar.gz | 4.0 kB | Without provenance | Details for djangocms-css-background-1.0.4.tar.gz |
Release files / djangocms-css-background-1.0.4.tar.gz
| Download URL | djangocms-css-background-1.0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5953fd55fdaf07c0060b36fe2bb8ce4abfe306b7235180758e215977b2ba87d
|
|
BLAKE2b-256 checksum How to use checksums |
1c81f7862c3d96e32c3dee2357b4799f66c7eeea1e1777142828012ca456b07e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djangocms-css-background 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.