Style Plugin for django CMS
Project description
Aldryn Style provides a plugin that wraps other plugins in CSS styling, by placing a class name on a containing element.
Installation
This plugin requires django CMS 2.4 or higher to be properly installed.
Within your virtualenv 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:
_ = lambda s: s ALDRYN_STYLE_CLASS_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/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
File details
Details for the file aldryn-style-1.0.0.tar.gz
.
File metadata
- Download URL: aldryn-style-1.0.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a26dbb573e227ae29e272dfd60b92972974973584ad800b1000a48572829fb8 |
|
MD5 | 180de6356c5a93fe85bd3c94e8445374 |
|
BLAKE2b-256 | 49f57c6b07484d59d75c5402af0408332032f4e057a7cbb9cfd6e662362aaf9e |