Skip to content

a django-cms plugin which allow you to edit css background image or color from the edit mode

License

Notifications You must be signed in to change notification settings

nikita-gorodeckij/djangocms-css-background

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated: No longer maintained Please consider forking this repository, should works on python2 but doesn't works on python3

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

About

a django-cms plugin which allow you to edit css background image or color from the edit mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • Makefile 2.2%