wagtail-deprecated / wagtail-condensedinlinepanel

Fast, drop-in replacement for Wagtail's inline panel with drag and drop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ No longer maintained: This package's functionality is largely covered by the Wagtail 3.0 - 4.0 page editor redesign.

Condensed InlinePanel for Wagtail CMS

This repository contains a drop-in replacement for Wagtail's InlinePanel. It's designed with a lighter interface that's suitable for cases where there may be hundreds of items in the panel.

Screenshot

Features

  • Fast, react-based UI which hides away forms that aren't being used
  • Drag and drop reordering
  • Add a new item at any point

Installation

Firstly, install the module with PIP:

pip install wagtail-condensedinlinepanel==0.5.2

Then, add condensedinlinepanel to your INSTALLED_APPS:

# settings.py


INSTALLED_APPS = [
    ...

    'condensedinlinepanel',

    ...
]

Then, finally, import the edit handler and use it. CondensedInlinePanel can be used as a drop-in replacement for Wagtail's built-in InlinePanel:

# models.py

...

from condensedinlinepanel.edit_handlers import CondensedInlinePanel

...

class MyPage(Page):
    ...

    content_panels = [
        ...

        CondensedInlinePanel('carousel_items', label="Carousel items", card_header_from_field="title"),
    ]

About

Fast, drop-in replacement for Wagtail's inline panel with drag and drop

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 61.1%Language:Python 21.3%Language:SCSS 8.9%Language:JavaScript 7.0%Language:HTML 1.4%Language:Makefile 0.3%