Skip to main content

Knowledgebase pages with bootstrap compatible StreamFields configured

Project description

Knowledgebase Site Pages for Wagtail.

Usage

  1. pip install wagtail-knowledgebase

  2. Add “wtknowledgebase” to INSTALLED_APPS in your settings.py

  3. Optionally add a list of ('name', **kwargs) tuples to WTKNOWLEDGEBASE_STATIC_BLOCKS setting to define static blocks to be included in page types.

Reuse stream blocks

The block designed for these pages could be useful for other pages, you can use the stream builder that is defined in blocks to make use of the blocks defined for knowledgebase pages.

from wagtail.models import Page
from wagtail.fields import StreamField
from wtknowledgebase import blocks

class HomePage(Page):
    body = StreamField(blocks.stream_builder.blocks([
        ('my_extra_static', StaticBlock(
            template='_my_template.html',
            label="Admin UI Label",
            icon='doc-full',
            admin_text="This is a deeper description",
    ])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-knowledgebase-1.0.tar.gz (9.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page