Giter VIP home page Giter VIP logo

wagtailquickcreate's Introduction

Wagtail Quick Create

CircleCI

Wagtail Quick Create offers shortcut links to create objects from models specified in your settings file.

A panel is added to the admin home, offering a type:

Quick Create Panel example

Clicking a create link will offer a parent selection for the new item

Parent selection example

Note on parent pages

Wagtailquickcreate needs the parent_page_types set on the model you wish to include so it can successfully provide the parent page selection. If this isn't specified, you will likely see every page offered as a parent, this will not work as it's looking up pages using wagtail.core.models.Page and this core wagtail class has is_creatable = False

Configuration

Install using pip:

pip install wagtail-quick-create

After installing the module, add wagtailquickcreate to your installed apps in your settings file:

INSTALLED_APPS = [
    ...
    'wagtailquickcreate',
]

Also add the models you would like to create quick links for to your settings file as 'your_app_name.YourModelName':

EG:

WAGTAIL_QUICK_CREATE_PAGE_TYPES = ['news.NewsPage', 'events.EventPage']

If you want the Quick Create links panel to replace the wagtail summary panel, you can set this by adding the following to your settings

WAGTAIL_QUICK_CREATE_REPLACE_SUMMARY_PANEL = True

If you would like to offer image and or document links, this can also be done by specifying the following in your settings:

WAGTAIL_QUICK_CREATE_DOCUMENTS = True
WAGTAIL_QUICK_CREATE_IMAGES = True

Credits/Authors

Concept created by Kate Statton - NYPR @katestatton

wagtailquickcreate's People

Contributors

kevinhowbrook avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.