Settings#
- lotus.settings.LOTUS_CATEGORY_PAGINATION = 5#
Category per page limit for pagination, set it to
None
to disable pagination.
- lotus.settings.LOTUS_ARTICLE_PAGINATION = 10#
Article entry per page limit for pagination, set it to
None
to disable pagination.
- lotus.settings.LOTUS_AUTHOR_PAGINATION = 6#
Author per page limit for pagination, set it to
None
to disable pagination.
- lotus.settings.LOTUS_TAG_PAGINATION = 40#
Tag per page limit for pagination, set it to
None
to disable pagination.
- lotus.settings.LOTUS_ENABLE_TAG_INDEX_VIEW = True#
To allow (
True
) or not (False
) the tag index view. This option exists because tag index view may have performance issues and is not always required in some projects.Note
The tag index part will still appears in breadcrumbs since it won’t have any meaning to locate a tag detail at the root of Lotus breadcrumbs. However it won’t have any link to click.
- lotus.settings.LOTUS_ARTICLE_PUBLICATION_STATE_NAMES = {'featured': 'featured', 'pinned': 'pinned', 'private': 'private', 'publish_end_passed': 'passed', 'publish_start_below': 'not-yet', 'status_available': 'available', 'status_draft': 'draft'}#
Available article state names.
You can remove an entry to ignore some states and they won’t be returned in article states.
Note than
publish_start_below
andpublish_end_passed
are only elligible withavailable
state enabled and never ifdraft
state is enabled.In practice
draft
,publish_start_below
andpublish_end_passed
states will only be visible for admin in preview mode since other users can not view this kind of articles.In the same way the
private
state will only be visible to authenticated users.You may change state value since they are mostly label however it can break some default lotus templates which may use them so you will have to override these templates.
- lotus.settings.LOTUS_ARTICLE_SIBLING_TEMPLATE = 'lotus/article/partials/siblings.html'#
Default template to use for template tag
get_translation_siblings
with an Article object.
- lotus.settings.LOTUS_CATEGORY_SIBLING_TEMPLATE = 'lotus/category/partials/siblings.html'#
Default template to use for template tag
get_translation_siblings
with an Category object.
- lotus.settings.LOTUS_PREVIEW_KEYWORD = 'preview'#
Keyword name for preview mode in session
- lotus.settings.LOTUS_PREVIEW_VARNAME = 'preview_mode'#
Template context variable name to set the preview mode in views.
- lotus.settings.LOTUS_PREVIEW_SWITCH_TEMPLATE = 'lotus/preview_switch.html'#
Template path to use to render template tag
preview_switch
.
- lotus.settings.LOTUS_CATEGORIES_TAG_TEMPLATE = 'lotus/category/partials/tag_get_categories.html'#
Template path to use to render template tag
get_categories
.
- lotus.settings.LOTUS_CRUMBS_TITLES = {'article-index': 'Articles', 'author-index': 'Authors', 'category-index': 'Categories', 'tag-index': 'Tags'}#
Crumb title to use for views breadcrumbs, for each item key uses the url name and value is the title to display. You must not remove any of these, just change the value.
Note
Not all views have a static crumb title, like all detail views use directly the object title as a crumb title, so they won’t be editable from this setting.