{
"info": {
"author": "Alex Malykh",
"author_email": "a2m.dev@yandex.ru",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "cmsplugin-css-background\n========================\n.. _django CMS: https://django-cms.org\n\n`django CMS`_ plugin for configuring background images in edit mode via CSS\nrules.\n\n\nRequirements\n------------\n\n * Django 1.8+\n * django CMS 3.3+\n\nInstallation\n------------\n\nIn your Python environment run\n\n.. code:: shell\n\n $ pip install cmsplugin-css-background\n\nThis will install the latest stable version of the plugin package.\nTo install the package's latest repository snapshot run\n\n.. code:: shell\n\n $ pip install -e git+https://github.com/alexmalykh/cmsplugin-css-background.git@master#egg=cmsplugin-css-background\n\nThen add the plugin to ``INSTALLED_APPS`` list:\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...,\n 'cmsplugin_css_background',\n ]\n\nand finally, roll database migrations:\n\n.. code:: shell\n\n $ python manage.py migrate cmsplugin_css_background\n\n\nUsage\n-----\n\n1. Define a placeholder in your template this way:\n\n .. code:: django\n\n {% with css_selector = '#some-element' %}\n {% placeholder 'some_element_background' %}\n {% endwith %}\n\n\n The placeholder might be located almost anywhere, not necessarily\n within/beside the element you want to change background. But it is\n recommended to keep both together for convenience.\n\n Optionally, you might add an entry for your placeholder\n to ``PLACEHOLDER_CONF`` settings dictionary to restrict allowed plugin types\n to ``CSS Background`` and assign a readable title to the placeholder's\n dragbar instead of generated **Some_Element_Background**.\n\n2. Add an instance of ``CSS Background`` from ``Generic`` plugin group to the\n placeholder in CMS admin.\n\n .. note::\n This package is aware of ``cmsplugin-filer``. If the latter is\n installed and enabled, then you also get extra ``CSS Background`` plugin\n available in ``Filer`` plugins group. This option allows you to use images\n managed by Filer.\n\nThe plugin is rendered as ```` HTML element in-place, like this:\n\n.. code:: html\n\n \n\nThere is a single template, located at ``cms/plugins/css-background.html`` and\nit takes a single extra context variable ``css_selector`` which defines the\nelement(s) to assign background settings.\n\nBy default, background properties are rendered as a list of separate rules,\nbut there is one-liner option too. To change the way plugin rendered\noverride the plugin template and replace\n\n.. code:: django\n\n {{ instance.as_separate_rules }}\n\nwith\n\n.. code:: django\n\n {{ instance.as_single_rule }}\n\n\n.. Translations\n.. ~~~~~~~~~~~~\n.. you can help to translate this plugin at Transifex",
"description_content_type": null,
"docs_url": null,
"download_url": null,
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/alexmalykh/cmsplugin-css-background",
"keywords": null,
"license": "MIT License",
"maintainer": null,
"maintainer_email": null,
"name": "cmsplugin-css-background",
"package_url": "https://pypi.org/project/cmsplugin-css-background/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/cmsplugin-css-background/",
"project_urls": {
"Homepage": "https://github.com/alexmalykh/cmsplugin-css-background"
},
"release_url": "https://pypi.org/project/cmsplugin-css-background/0.1.0/",
"requires_dist": null,
"requires_python": null,
"summary": "A django CMS plugin for managing CSS background styles",
"version": "0.1.0"
},
"last_serial": 2189349,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "ef48db828a2debfb4f4aca287dc0abf5",
"sha256": "ffa24b0dd1c208a868b32bd6aa96dd76a29ae19be0abf9b5d19fd35290cf6c21"
},
"downloads": -1,
"filename": "cmsplugin_css_background-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef48db828a2debfb4f4aca287dc0abf5",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 9295,
"upload_time": "2016-06-27T13:24:56",
"url": "https://files.pythonhosted.org/packages/30/01/764e16e5d08e06ee51953dd2b9f3215c476823a8537d938e67183da54b73/cmsplugin_css_background-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7f60b0c1bc9db2b59499ceb6b02dd397",
"sha256": "8399081b86b93e3a8fa892740c35eec4b0a8755d753f9c6aed6fd53022bf4a64"
},
"downloads": -1,
"filename": "cmsplugin-css-background-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "7f60b0c1bc9db2b59499ceb6b02dd397",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6254,
"upload_time": "2016-06-27T13:25:10",
"url": "https://files.pythonhosted.org/packages/97/32/7a84d39bc7ed00b7bd26bcc4e98527adc15b4903bbcf024ce8b59aa34ca6/cmsplugin-css-background-0.1.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "ef48db828a2debfb4f4aca287dc0abf5",
"sha256": "ffa24b0dd1c208a868b32bd6aa96dd76a29ae19be0abf9b5d19fd35290cf6c21"
},
"downloads": -1,
"filename": "cmsplugin_css_background-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef48db828a2debfb4f4aca287dc0abf5",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 9295,
"upload_time": "2016-06-27T13:24:56",
"url": "https://files.pythonhosted.org/packages/30/01/764e16e5d08e06ee51953dd2b9f3215c476823a8537d938e67183da54b73/cmsplugin_css_background-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "7f60b0c1bc9db2b59499ceb6b02dd397",
"sha256": "8399081b86b93e3a8fa892740c35eec4b0a8755d753f9c6aed6fd53022bf4a64"
},
"downloads": -1,
"filename": "cmsplugin-css-background-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "7f60b0c1bc9db2b59499ceb6b02dd397",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6254,
"upload_time": "2016-06-27T13:25:10",
"url": "https://files.pythonhosted.org/packages/97/32/7a84d39bc7ed00b7bd26bcc4e98527adc15b4903bbcf024ce8b59aa34ca6/cmsplugin-css-background-0.1.0.tar.gz"
}
]
}