All Projects → django-cms → djangocms-style

django-cms / djangocms-style

Licence: other
django CMS Style is a plugin for django CMS that allows you to create a HTML container containing classes, styles, ids and other attributes.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to djangocms-style

djangocms-snippet
django CMS Snippet provides a plugin for django CMS to inject HTML, CSS or JavaScript snippets into your website.
Stars: ✭ 42 (+7.69%)
Mutual labels:  addon, django-cms
djangocms-file
django CMS File is a set of plugins for django CMS that allow you to add files to your site You can either choose a single file or an entire folder.
Stars: ✭ 30 (-23.08%)
Mutual labels:  addon, django-cms
VSE Transform Tools
Quickly transform, crop and fade video strips in Blender's Video Sequence Editor
Stars: ✭ 195 (+400%)
Mutual labels:  addon
Anki-Night-Mode
Enabling studying at night with Anki - without eye strain
Stars: ✭ 72 (+84.62%)
Mutual labels:  addon
ClayTech
An addon for slimefun.
Stars: ✭ 15 (-61.54%)
Mutual labels:  addon
yet-another-pinboard-extension
Manage your Pinboard bookmarks in your browser.
Stars: ✭ 27 (-30.77%)
Mutual labels:  addon
addon-zwavejs2mqtt
Z-Wave JS to MQTT - Home Assistant Community Add-ons
Stars: ✭ 68 (+74.36%)
Mutual labels:  addon
addon-tor
Tor - Home Assistant Community Add-ons
Stars: ✭ 37 (-5.13%)
Mutual labels:  addon
netflix-list-exporter
💫‎‎‎‏‏‎ An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (+53.85%)
Mutual labels:  addon
blender-addon-for-trackmania-and-maniaplanet
Blender addon for trackmania2020 & maniaplanet. 1 Click export & convert to .gbx.
Stars: ✭ 18 (-53.85%)
Mutual labels:  addon
KAM
The ACE Advanced Medical System is nice, but we can do it better, even on a more realistic way and bring it on another level with these addons.
Stars: ✭ 19 (-51.28%)
Mutual labels:  addon
tsaotun
Tsaotun - Python based Assistance for Docker
Stars: ✭ 51 (+30.77%)
Mutual labels:  addon
ember-legit-forms
Component for creating flexible forms along with validations.
Stars: ✭ 41 (+5.13%)
Mutual labels:  addon
SubServers-2
SubServers – The Minecraft Server Management Platform
Stars: ✭ 80 (+105.13%)
Mutual labels:  addon
repo-scrapers
Official source repository for Kodi scraper add-ons
Stars: ✭ 27 (-30.77%)
Mutual labels:  addon
DuBLF DuBlast
Quick Playblast tool for Blender
Stars: ✭ 18 (-53.85%)
Mutual labels:  addon
ember-app-scheduler
An Ember addon to schedule work until after the initial render.
Stars: ✭ 67 (+71.79%)
Mutual labels:  addon
BSkyBlock
BSkyBlock add-on for BentoBox (Discord link: https://discordapp.com/invite/T5HxmvK)
Stars: ✭ 103 (+164.1%)
Mutual labels:  addon
laravel-blueprint-pestphp-addon
A PestPHP addon for Laravel Shift's Blueprint
Stars: ✭ 30 (-23.08%)
Mutual labels:  addon
ACF-CPT-Options-Pages
Small addon for ACF Options. Adds ACF options page per custom post type
Stars: ✭ 73 (+87.18%)
Mutual labels:  addon

django CMS Style

pypi build coverage

django CMS Style is a plugin for django CMS that allows you to create a HTML container containing classes, styles, ids and other attributes definable through the plugins settings.

Note

This project is considered 3rd party (no supervision by the django CMS Association). Join us on Slack for more information.

preview.gif

Contribute to this project and win rewards

Because this is a an open-source project, we welcome everyone to get involved in the project and receive a reward for their contribution. Become part of a fantastic community and help us make django CMS the best CMS in the world.

We'll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines.

We're grateful to all contributors who have helped create and maintain this package. Contributors are listed at the contributors section.

Documentation

See REQUIREMENTS in the setup.py file for additional dependencies:

python django djangocms

Installation

For a manual install:

  • run pip install djangocms-style
  • add djangocms_style to your INSTALLED_APPS
  • run python manage.py migrate djangocms_style

Configuration

django CMS Style enables you to provide a list of predefined classes to be displayed as first options, the default choices are:

DJANGOCMS_STYLE_CHOICES = ['container', 'content', 'teaser']

You are encouraged to modify that setting to your projects specifications.

This addon provides a default template for all instances. You can provide additional template choices by adding a DJANGOCMS_STYLE_TEMPLATES setting:

DJANGOCMS_STYLE_TEMPLATES = [
    ('feature', _('Feature')),
]

You'll need to create the feature folder inside templates/djangocms_style/ otherwise you will get a template does not exist error. You can do this by copying the default folder inside that directory and renaming it to feature.

The available tags can also be configured, the default choices are:

DJANGOCMS_STYLE_TAGS = ['div', 'article', 'section', 'header', 'footer',
                        'h1', 'h2', 'h3', 'h4', 'h5', 'h6']

NOTICE:

All tags included in this list should be "paired tags" that require a
closing tag. It does not make sense to attempt to use 'img', 'input',
'meta', or other self-closing tags in this setting.

Also, the developer is advised to choose the tag-types wisely to avoid HTML
validation issues and/or unintentional security vulnerabilities. For
example, the 'script' tag should never be allowed in
``DJANGOCMS_STYLE_TAGS`` (though, we do not prevent this). If you have
an application where you find yourself wishing to do this, please see
djangocms-snippet as an alternative, but note these projects also come
with appropriate security warnings.

After that you can place any number of other plugins inside this style plugin. It will create a div (or other tag-type) with a class that was prior selected around the contained plugins.

Running Tests

You can run tests by executing:

virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].