Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

http://img.shields.io/pypi/v/wagtail_lightadmin.svg http://img.shields.io/badge/license-MIT-blue.svg http://img.shields.io/travis/leukeleu/wagtail_lightadmin/master.svg

Features

This app customises the wagtail admin as follows:

Rich text

Some of the less useful features are removed (HR, undo/redo, H4, H5).

Headings/paragraph come first (though https://stackoverflow.com/questions/10773813/adding-something-to-the-top-of-a-json-object).

The active state of the rich text (.expand) does not expand anymore

Publication flow

The “submit for moderation” button is hidden (it’s mostly confusing for the type of clients we have).

Provides a LinkBlock

It has the same UI as when you insert a link in a RichText but has the advantage of being avialable out of it.

In case you are using this block to replace a PageChooserBlock you can also use the pagechooser_fallback template tag. The PageChooserBlock initially only saves the pk of the page you want to link to. This template tag gets the corresponding page and extracts the URL and the page title from it to try and display what you would expect. A similar logic is used to try and keep the page the editor initially picked on the admin side.

Install & setup

pip install wagtail_lightadmin

Add wagtail_lightadmin to your installed apps.

Tell Wagtail to use the light rich text widget in your settings_default.py:

WAGTAILADMIN_RICH_TEXT_EDITORS = {
    'default': {
        'WIDGET': 'wagtail.wagtailadmin.rich_text.HalloRichTextArea',
        'OPTIONS': {
            'plugins': {
                'halloheadings': {'formatBlocks': ['p', 'h2', 'h3']},
                'halloformat': {},
                'hallolists': {},
                'hallowagtaillink': {},
                'hallorequireparagraphs': {},
                'hallowagtailembeds': {},
                'hallowagtailimage': {},
                'hallowagtaildoclink': {},
            },
        }
    },
}

Make sure django knows about the new static files

manage.py collectstatic –no-input

Metadata

Release files for wagtail-lightadmin 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-lightadmin 0.13.1
File Size Uploaded
wagtail_lightadmin-0.13.1.tar.gz 11.2 kB Details

Release files / wagtail_lightadmin-0.13.1.tar.gz

Download URL wagtail_lightadmin-0.13.1.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4eb0c6cef756d4177d27f09193ce205d1c54f0dd4ea48bc392584fb60003881e
BLAKE2b-256 checksum
How to use checksums
58eb8e551e6b4454b50e35f379a7bb240d0717b1152ed6c8a0d8f8f9c16190b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page