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
Built Distribution
File details
Details for the file feincms_richtextplus-1.1.0.tar.gz
.
File metadata
- Download URL: feincms_richtextplus-1.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84e2702bea54511e9c46debfcaf8a9e577716068dc541be6ef3fa56183e7494 |
|
MD5 | b2c9212fe7e11edff29aab6594db89d5 |
|
BLAKE2b-256 | b19d3c096452bf85b8d07d154b16f526cb60ed4ef2049d8a8eeb8f2fa1840594 |
File details
Details for the file feincms_richtextplus-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: feincms_richtextplus-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f844463be725b7d0153f47f7f3a45ffd73e01fe368cf673071a3bb66c4376f5f |
|
MD5 | 076d4ee1438b4f02f94409995a3900db |
|
BLAKE2b-256 | 4e81e560183b7cffae7645be2db08278104dc18ddcc69bfeddbe1c91eb8fb476 |