Fix: Added missing ":" in documentation
This commit is contained in:
parent
18959d35df
commit
61b2304164
2 changed files with 10 additions and 5 deletions
|
@ -153,11 +153,17 @@ root of your custom templates set.
|
|||
Plugin Templates
|
||||
****************
|
||||
|
||||
Plugin templates live in the ``plugins`` folder of the folder specified by the **Template prefix**, or by default ``djangocms_blog``.
|
||||
Plugin templates live in the ``plugins`` folder of the folder specified by the **Template prefix**,
|
||||
or by default ``djangocms_blog``.
|
||||
|
||||
By defining the setting ``BLOG_PLUGIN_TEMPLATE_FOLDERS`` you can allow multiple sets of plugin templates allowing for different views per plugin instance. You could, for example, have a plugin displaying latest posts as a list, a table or in masonry style.
|
||||
By defining the setting ``BLOG_PLUGIN_TEMPLATE_FOLDERS`` you can allow multiple sets of
|
||||
plugin templates allowing for different views per plugin instance. You could, for example,
|
||||
have a plugin displaying latest posts as a list, a table or in masonry style.
|
||||
|
||||
To use this feature define ``BLOG_PLUGIN_TEMPLATE_FOLDERS`` as a list of available templates. Each item of this list itself is a list of the form ``('[folder_name]', '[verbose name]')``. Example:
|
||||
To use this feature define ``BLOG_PLUGIN_TEMPLATE_FOLDERS`` as a list of available templates.
|
||||
Each item of this list itself is a list of the form ``('[folder_name]', '[verbose name]')``.
|
||||
|
||||
Example:::
|
||||
|
||||
BLOG_PLUGIN_TEMPLATE_FOLDERS = (
|
||||
('plugins', _('Default template')), # reads from templates/djangocms_blog/plugins/
|
||||
|
|
|
@ -91,8 +91,7 @@ Global Settings
|
|||
* BLOG_FEED_INSTANT_ITEMS: Number of items in Instant Article feed
|
||||
* BLOG_FEED_LATEST_ITEMS: Number of items in latest items feed
|
||||
* BLOG_FEED_TAGS_ITEMS: Number of items in per tags feed
|
||||
* BLOG_PLUGIN_TEMPLATE_FOLDERS: (Sub-)folder from which the plugin templates are loaded.
|
||||
The default folder is `plugins`. It goes into the `djangocms_blog` template folder (or, if set, the folder named in the app hook). This allows, e.g., different templates for showing a post list as tables, columns, ... . New templates have the same names as the standard templates in the `plugins` folder (`latest_entries.html`, `authors.html`, `tags.html`, `categories.html`, `archive.html`). Default behavior corresponds to this setting being `( ("plugins", _("Default template") )`. To add new templates add to this setting, e.g., `('timeline', _('Vertical timeline') )`.
|
||||
* BLOG_PLUGIN_TEMPLATE_FOLDERS: (Sub-)folder from which the plugin templates are loaded. The default folder is ``plugins``. It goes into the ``djangocms_blog`` template folder (or, if set, the folder named in the app hook). This allows, e.g., different templates for showing a post list as tables, columns, ... . New templates have the same names as the standard templates in the ``plugins`` folder (``latest_entries.html``, ``authors.html``, ``tags.html``, ``categories.html``, ``archive.html``). Default behavior corresponds to this setting being ``( ("plugins", _("Default template") )``. To add new templates add to this setting, e.g., ``('timeline', _('Vertical timeline') )``.
|
||||
|
||||
|
||||
******************
|
||||
|
|
Loading…
Reference in a new issue