From 8e87a27c48daee4ed1807827fe58ec1a92c68dc8 Mon Sep 17 00:00:00 2001 From: rscnt Date: Sat, 13 Jun 2015 22:35:25 -0600 Subject: [PATCH] settings: use placeholder for blog post. Add a TextFieldPlugin to the blog post content placeholder by default. The content added to the model for the articles is just a TextField, so we loose every plugin interaction. Signed-off-by: rscnt --- dynamicweb/settings.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index da227622..2498d4c0 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -226,7 +226,25 @@ CMS_PLACEHOLDER_CONF = { } } ], - } + }, + 'content': { + 'name' : _('Content'), + 'default_plugins':[ + { + 'plugin_type':'TextPlugin', + 'values':{'body':'

'}, + }, + ] + }, + 'post_content': { + 'name' : _('Content'), + 'default_plugins':[ + { + 'plugin_type':'TextPlugin', + 'values':{'body':'

'}, + }, + ] + }, } CACHES = { @@ -383,7 +401,7 @@ BOOTSTRAP3 = { # djangocms_blog config BLOG_ENABLE_COMMENTS = False -BLOG_USE_PLACEHOLDER = False +BLOG_USE_PLACEHOLDER = True BLOG_IMAGE_THUMBNAIL_SIZE = {'size': '120x120', 'crop': True,'upscale': False} BLOG_IMAGE_FULL_SIZE = {'size': '640x120', 'crop': True,'upscale': False} BLOG_PAGINATION = 4