Knowledgebase pages with bootstrap compatible StreamFields configured
Project description
Knowledgebase Site Pages for Wagtail.
Usage
pip install wagtail-knowledgebase
Add “wtknowledgebase” to INSTALLED_APPS in your settings.py
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
File details
Details for the file wagtail-knowledgebase-1.0.tar.gz
.
File metadata
- Download URL: wagtail-knowledgebase-1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27f7ed855f43bd8c1272da22b12465a945486c7a68e0d36abedb11a2bdcbbb4 |
|
MD5 | 64fbaeb5b80c672c04d0bdaafec7794d |
|
BLAKE2b-256 | 76dc99fe525be7b0e529c36dbea8a9d3c8bad87b8d514ef4ded7ef9b6e95b792 |