RichText Content with TYPE_CHOICES configurability
Project description
feincms_richtextplus is a feincms plugin that copies the functionality of the original RichTextContent, and adds TYPE_CHOICES configuration option
Convenient when you need to render RichText data using different templates which you can pick from admin page
Installation
Add “feincms_richtextplus” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'feincms_richtextplus', )
Create RichTextPlusContent for your Page model (or any other Base-derived model) like this:
from feincms_richtextplus.models import RichTextPlusContent # ... Page.create_content_type(SimpleTableContent, TYPE_CHOICES=( ('default', 'default richtextplus'), ('wrapped', 'wrapped data'), # ... (other TYPE_CHOICES) ))
Define templates for every TYPE_CHOICES entry, i.e.:: project_dir/app/templates/content/richtextplus/default.html project_dir/app/templates/content/richtextplus/wrapped.html
Migrate Page
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
Hashes for feincms_richtextplus-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5518b813fd2fe434046c726d2bfe15160be8c58dfd3574856ab520427662c3f |
|
MD5 | d75d00d3bacb7a6b50604f74f1d0da36 |
|
BLAKE2b-256 | afdd46de8b64123164cc005ba6e5d91793cc26acc89bef738800822f945d1c89 |