Add docs
This commit is contained in:
parent
c1edba9772
commit
7cdfc0e7c7
4 changed files with 9 additions and 2 deletions
|
@ -10,7 +10,9 @@ History
|
|||
|
||||
* Dropped support for Django<1.8, django CMS<3.2.
|
||||
* Added liveblog application.
|
||||
* Refactored plugin filters: by default only current site are now shown.
|
||||
* Refactored plugin filters: by default only data for current site are now shown.
|
||||
* Added global and per site posts count to BlogCategory.
|
||||
* Added option to hide empty categories from menu.
|
||||
* Added standalone documentation at https://djangocms-blog.readthedocs.io.
|
||||
|
||||
******************
|
||||
|
|
|
@ -67,7 +67,8 @@ class BlogConfigForm(AppDataForm):
|
|||
help_text=_('Structure of the django CMS menu')
|
||||
)
|
||||
menu_empty_categories = forms.BooleanField(
|
||||
label=_('Show empty categories in menu'), initial=True, required=False,
|
||||
label=_('Show empty categories in menu'), initial=get_setting('MENU_EMPTY_CATEGORIES'),
|
||||
required=False,
|
||||
help_text=_('Show categories with no post attached in the menu')
|
||||
)
|
||||
sitemap_changefreq = forms.ChoiceField(
|
||||
|
|
|
@ -58,6 +58,7 @@ def get_setting(name):
|
|||
settings, 'BLOG_POSTS_LIST_TRUNCWORDS_COUNT', 100
|
||||
),
|
||||
'BLOG_MENU_TYPES': MENU_TYPES,
|
||||
'BLOG_MENU_EMPTY_CATEGORIES': getattr(settings, 'MENU_EMPTY_CATEGORIES', True),
|
||||
'BLOG_TYPE': getattr(settings, 'BLOG_TYPE', 'Article'),
|
||||
'BLOG_TYPES': meta_settings.OBJECT_TYPES,
|
||||
'BLOG_FB_TYPE': getattr(settings, 'BLOG_FB_TYPE', 'Article'),
|
||||
|
|
|
@ -11,6 +11,8 @@ Global Settings
|
|||
detail; it's a dictionary with ``size``, ``crop`` and ``upscale`` keys;
|
||||
(default: ``{'size': '640x120', 'crop': True,'upscale': False}``)
|
||||
* BLOG_PAGINATION: Number of post per page; (default: ``10``)
|
||||
* BLOG_MENU_EMPTY_CATEGORIES: Flag to show / hide categories without posts
|
||||
attached from the menu; (default: ``True``)
|
||||
* BLOG_LATEST_POSTS: Default number of post in the **Latest post** plugin;
|
||||
(default: ``5``)
|
||||
* BLOG_POSTS_LIST_TRUNCWORDS_COUNT: Default number of words shown for
|
||||
|
@ -119,6 +121,7 @@ be used as defaults.
|
|||
* Paginate sizePer-Apphook setting for BLOG_PAGINATION;
|
||||
* Template prefix: Alternative directory to load the blog templates from;
|
||||
* Menu structure: Per-Apphook setting for BLOG_MENU_TYPE
|
||||
* Show empty categories in menu: Per-Apphook setting for BLOG_MENU_EMPTY_CATEGORIES
|
||||
* Sitemap changefreq: Per-Apphook setting for BLOG_SITEMAP_CHANGEFREQ_DEFAULT
|
||||
* Sitemap priority: Per-Apphook setting for BLOG_SITEMAP_PRIORITY_DEFAULT
|
||||
* Object type: Per-Apphook setting for BLOG_TYPE
|
||||
|
|
Loading…
Reference in a new issue