Extensions for FeinCMS.
Add a prepared date value to the FeinCMS page.Page
model.
If the page has no value set then the value is taken from nearest ancestor
page (based on _cached_url
path) that has a value.
Render the feincms regions into a dictionary.
Render the page navigation. To enable the feincms_extensions/navigation.html
template in this project add feincms_extensions
to INSTALLED_APPS
, and add
feincms.context_processors.add_page_if_missing
to your
TEMPLATE_CONTEXT_PROCESSORS
setting to ensure the presence of a feincms_page
instance in the template context.
The template needs to be included in your template and it accepts two optional parameters:
nav_id
(default:top-level
): css id to be used for the menu;depth
(default: 1): the depth of sub navigation to include.
{% include "feincms_extensions/navigation.html" with nav_id="new-id" depth=2 %}