A django-cms plugin which allow you to edit css background image or color from the edit mode
Project description
CSS Background
==============
Description
-----------
``djangocss_background`` is a
`django-cms <https://github.com/divio/django-cms>`__ plugin which allow
you to edit css background image or color from the edit mode
Depends
-------
- `django-cms <https://github.com/divio/django-cms>`__
- `djangocms\_placeholder\_attr <https://github.com/WnP/cms_placeholder_attr>`__
- `django-filer <https://github.com/stefanfoulis/django-filer>`__
Installation
------------
- Download the source and run ``python setup.py install``
- 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:
.. code:: django
{% 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
==============
Description
-----------
``djangocss_background`` is a
`django-cms <https://github.com/divio/django-cms>`__ plugin which allow
you to edit css background image or color from the edit mode
Depends
-------
- `django-cms <https://github.com/divio/django-cms>`__
- `djangocms\_placeholder\_attr <https://github.com/WnP/cms_placeholder_attr>`__
- `django-filer <https://github.com/stefanfoulis/django-filer>`__
Installation
------------
- Download the source and run ``python setup.py install``
- 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:
.. code:: django
{% 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
Close
Hashes for djangocms-css-background-1.0.1b.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fcf3631976914d809d534577fc5fcfa74d25bc062e44a672e12bd1301fcd05 |
|
MD5 | b003d11fcc9678c401ea09a1a635ca57 |
|
BLAKE2b-256 | d3acf2d90235f20036547bac8f76502bbcc002ea243ee44f92468c183a0c4348 |