"cms.plugins.snippet" (from djangocms) clone to extend it with some facilities
Project description
This is a “cms.plugins.snippet” (from djangocms) clone to extend it with some facilities
Original code is from the original DjangoCMS plugin.
Changes from original code
This clone try to change as few orignal code as possible, actually the differences are :
Adding a template tag to directly use snippet fragments in the templates, not only from CMS pages;
Changing Snippet model to bind djangocms_text_ckeditor.fields.HTMLField on the field html;
Requires
DjangoCMS version >= 2.3 (tested with 2.3.6) (should not work with >= 3.x);
djangocms_text_ckeditor version 1.0.10;
Install
The only thing needed is to replace the cms.plugins.snippet in your DjangoCMS settings, like this :
INSTALLED_APPS = ( 'cms', # Plugins ... #'cms.plugins.snippet', 'snippet', # the snippet plugin clone ... )
Because the code is cloned from the original plugin with just a few changes, all CMS stuff should work as with the original plugin, you should even add it in an existing install without loss in database and without any syncdb.
Usage
Snippet html field
You don’t need to do nothing, the CKEditor should automatically take in place of the textarea input.
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
File details
Details for the file emencia-cms-snippet-2.3.6.2.tar.gz
.
File metadata
- Download URL: emencia-cms-snippet-2.3.6.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb36093032a245c9d01d7301f65eaf24a3cb90b29570f3a0ee831e502ff395b |
|
MD5 | 374abfb8db55dfdb18371fb91f9f538b |
|
BLAKE2b-256 | 50036eb8a60ed0568d231ff54d6102056df7f2c23d057e3d23cd7823a5c42dce |