Skip to main content

Style Plugin for django CMS

Project description

djangocms-style
===============

A Plugin for django CMS to add CSS classes to other plugins


Installation
------------

This plugin requires `django CMS` 2.4 or higher to be properly installed.

* In your projects `virtualenv`, run ``pip install djangocms-style``.
* If using Django 1.6 and South < 1.0.2 add ``'djangocms_style': 'djangocms_style.south_migrations',``
to ``SOUTH_MIGRATION_MODULES`` (or define ``SOUTH_MIGRATION_MODULES`` if it
does not exist);
* Add ``'djangocms_style'`` to your ``INSTALLED_APPS`` setting.
* Run ``manage.py migrate djangocms_style``.


Usage
-----

You can define styles in your settings.py:

```
CMS_STYLE_NAMES = (
('info', _("info")),
('new', _("new")),
('hint', _("hint")),
)
```

After that you can place other plugins inside this style plugin.
It will create a div with a class that was prior selected around this plugin.

Translations
------------

If you want to help translate the plugin please do it on transifex:

https://www.transifex.com/projects/p/django-cms/resource/djangocms-style/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-style-1.6.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

djangocms_style-1.6.0-py2-none-any.whl (113.0 kB view details)

Uploaded Python 2

File details

Details for the file djangocms-style-1.6.0.tar.gz.

File metadata

File hashes

Hashes for djangocms-style-1.6.0.tar.gz
Algorithm Hash digest
SHA256 192685fca9a7c714f41be3dd4dd94137d343387c11deab74e1b62fbbaeb2296c
MD5 9cc0287276ee6918bf7638f905a5cb3a
BLAKE2b-256 6b3d8c7a3f655b856d75a38509ad31997159f32976fd4de72d50a33c8120dc7f

See more details on using hashes here.

Provenance

File details

Details for the file djangocms_style-1.6.0-py2-none-any.whl.

File metadata

File hashes

Hashes for djangocms_style-1.6.0-py2-none-any.whl
Algorithm Hash digest
SHA256 32fcab1994735e6ab61ac9caec7e91968527bb0477df7ddd27a6009584b17eb2
MD5 e98c67da726731b58b3c16e82bd7de0e
BLAKE2b-256 23e1cf2dfd0130580c865c7a4eb5612f8b1bc0bb7da0064ee8674ddf6eb41410

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page