Skip to content

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

Notifications You must be signed in to change notification settings

denangeles/wagtail-condensedinlinepanel

 
 

Repository files navigation

Condensed InlinePanel for Wagtail CMS

WARNING: This component is in early stages of development and contains bugs. It may also require customisation in order to use it on a new project.

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 that hides away forms that aren't being used
  • Drag and drop reordering
  • Create a new item at any point

Installation

Firstly, install the module with PIP:

pip install -e git://github.com/kaedroho/[email protected]#egg=wagtail-condensedinlinepanel

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 63.8%
  • Python 20.1%
  • CSS 8.6%
  • JavaScript 5.9%
  • HTML 1.6%