Skip to main content

Adds functionality to add and edit a CMS guide page for editors.

Project description

Wagtail Guide

tests codecov

What is it?

The Wagtail Guide app adds functionality for creating and editing a guide for editors and publishers to help them create good content.

Installation

Wagtailguide has a pypi package and can be installed with:

pip install wagtail-guide

After installing, add it to your settings file along with wagtail.contrib.settings, the settings inclusion should be placed with your other wagtail.contrib libraries:

INSTALLED_APPS = [
    ...
    'wagtail_guide',
    'wagtail.contrib.settings',
]

Settings and configuration

Wagtail guide has some customisation options...

WAGTAIL_GUIDE_MENU_LABEL Use this setting to define your own menu label for viewing the guide.

ADD_WAGTAIL_GUIDE_TO_HELP_MENU This setting will place the guide within the 'Help' menu.

HIDE_WAGTAIL_CORE_EDITOR_GUIDE You can use this setting to turn off the Wagtail core Editor Guide link

Examples of customisation via settings

Here is an example of a custom menu label (outlined here in orange), and placing the editor guide link in the help menu:

WAGTAIL_GUIDE_SETTINGS = {
    "ADD_WAGTAIL_GUIDE_TO_HELP_MENU": True,
    "WAGTAIL_GUIDE_MENU_LABEL": "CMS Publishing Guide",
    "HIDE_WAGTAIL_CORE_EDITOR_GUIDE": False,
}

custom label

Here is an example of hiding the core Editor Guide link and just using ours:

WAGTAIL_GUIDE_SETTINGS = {
    "ADD_WAGTAIL_GUIDE_TO_HELP_MENU": True,
    "WAGTAIL_GUIDE_MENU_LABEL": "CMS Publishing Guide",
    "HIDE_WAGTAIL_CORE_EDITOR_GUIDE": True,
}

remove help

You can define them in your project settings file like this:

WAGTAIL_GUIDE_SETTINGS = {
    "ADD_WAGTAIL_GUIDE_TO_HELP_MENU": False,
    "WAGTAIL_GUIDE_MENU_LABEL": "WG guide menu label",
    "HIDE_WAGTAIL_CORE_EDITOR_GUIDE": True,
}

Usage

To edit the guide, the user needs to be an admin, or have the Manage editor guide 'change' value checked in their user group permissions.

Editing the guide

To edit the guide, from the left hand menu open settings > then click 'Manage editor guide'. Edit your content and then save.

guide edit

Guide navigation menu

If more than one 'heading' blocks are added to the content, an automatic menu will be displayed at the top of the guide under the heading 'Contents'

Viewing the guide

Once logged in, a new menu icon towards the bottom of the left hand menu will be visible labeled as 'Editor guide':

guide view

Dependencies

Wagtail Guide requires wagtail>=4.1

Contributing

We welcome contributions to this project, see CONTRIBUTING.md for more details.

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_guide-2.0.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_guide-2.0.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_guide-2.0.2.tar.gz.

File metadata

  • Download URL: wagtail_guide-2.0.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for wagtail_guide-2.0.2.tar.gz
Algorithm Hash digest
SHA256 6cc41063bf5f583cc64b3db182301496296031303b6c93a6081d75ebb1eaf2c6
MD5 4d99f1983bbc832126a4c0d50fd3388e
BLAKE2b-256 4716fe9f7e3e211d3471a1172e19ba6debb04e298be5a9e0d3937359775b4c92

See more details on using hashes here.

File details

Details for the file wagtail_guide-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: wagtail_guide-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for wagtail_guide-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9964566e18e091802ebf3ab7423edfe3ab675725da33c3bac52f6311ccf9c597
MD5 6eb605e6eca62d52b1e6772b8387185f
BLAKE2b-256 120a9359247086c196a5e3c8456eb72599b50c0a3fd14884fe72ad8d9e6e71e0

See more details on using hashes here.

Supported by

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