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:
parent
2c347193e9
commit
bc418132d1
1 changed files with 20 additions and 2 deletions
|
@ -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 = {
|
CACHES = {
|
||||||
|
@ -383,7 +401,7 @@ BOOTSTRAP3 = {
|
||||||
# djangocms_blog config
|
# djangocms_blog config
|
||||||
|
|
||||||
BLOG_ENABLE_COMMENTS = False
|
BLOG_ENABLE_COMMENTS = False
|
||||||
BLOG_USE_PLACEHOLDER = False
|
BLOG_USE_PLACEHOLDER = True
|
||||||
BLOG_IMAGE_THUMBNAIL_SIZE = {'size': '120x120', 'crop': True,'upscale': False}
|
BLOG_IMAGE_THUMBNAIL_SIZE = {'size': '120x120', 'crop': True,'upscale': False}
|
||||||
BLOG_IMAGE_FULL_SIZE = {'size': '640x120', 'crop': True,'upscale': False}
|
BLOG_IMAGE_FULL_SIZE = {'size': '640x120', 'crop': True,'upscale': False}
|
||||||
BLOG_PAGINATION = 4
|
BLOG_PAGINATION = 4
|
||||||
|
|
Loading…
Reference in a new issue