Skip to main content

Style Plugin for django CMS

Project description

============
Aldryn 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.

* Create a `virtualenv` and run ``pip install aldryn-style``
* Add ``'aldryn_style'`` to your ``INSTALLED_APPS`` setting.
* Run ``manage.py migrate aldryn_style``.

-----
Usage
-----

You can define styles in your settings.py:

```
gettext = lambda s: s
ALDRYN_STYLE_CLASS_NAMES = (
('info', gettext('info')),
('new', gettext('new')),
('hint', gettext('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/aldryn-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

aldryn-style-0.2.0.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file aldryn-style-0.2.0.tar.gz.

File metadata

File hashes

Hashes for aldryn-style-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1211f7799d904182c27f63ed15ec0d376bf0233090653cd20783834a1afd02a2
MD5 5d2e15ca8d93002911a2a3ba2bcd1fa0
BLAKE2b-256 b52540358cba3e3871315f72fc81081db3674e0a116b56b1039154e3b4ab31df

See more details on using hashes here.

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