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``.
* Add ``'djangocms_style'`` to your ``INSTALLED_APPS`` setting.
* If using Django 1.7 add ``'djangocms_style': 'djangocms_style.migrations_django',``
to ``MIGRATION_MODULES`` (or define ``MIGRATION_MODULES`` if it does not exists);
when django CMS 3.1 will be released, migrations for Django 1.7 will be moved
to the standard location and the south-style ones to ``south_migrations``.
* 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/
===============
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``.
* Add ``'djangocms_style'`` to your ``INSTALLED_APPS`` setting.
* If using Django 1.7 add ``'djangocms_style': 'djangocms_style.migrations_django',``
to ``MIGRATION_MODULES`` (or define ``MIGRATION_MODULES`` if it does not exists);
when django CMS 3.1 will be released, migrations for Django 1.7 will be moved
to the standard location and the south-style ones to ``south_migrations``.
* 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
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
djangocms-style-1.5.tar.gz
(22.8 kB
view details)
File details
Details for the file djangocms-style-1.5.tar.gz
.
File metadata
- Download URL: djangocms-style-1.5.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17bf398cbbb71b13b086e545d45cfbbfd99bfd23738230178198dfb4b4b376c6 |
|
MD5 | e15bed74cbb888599c97ce0aaf76eb4f |
|
BLAKE2b-256 | ecff1a995acc8c1ee00d3928621839d3b411279cb662088b9d8e1eeea4244764 |