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 <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-06-13 22:35:25 -06:00
parent 4c86433046
commit 8e87a27c48
1 changed files with 20 additions and 2 deletions

View File

@ -226,7 +226,25 @@ CMS_PLACEHOLDER_CONF = {
}
}
],
}
},
'content': {
'name' : _('Content'),
'default_plugins':[
{
'plugin_type':'TextPlugin',
'values':{'body':'<p></p>'},
},
]
},
'post_content': {
'name' : _('Content'),
'default_plugins':[
{
'plugin_type':'TextPlugin',
'values':{'body':'<p></p>'},
},
]
},
}
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