GithubHelp home page GithubHelp logo

luizboaretto / wagtail-multi-image-edit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinhowbrook/wagtail-multi-image-edit

0.0 1.0 0.0 17 KB

Wagtail Multi Image Edit offers a solution to editing and updating data fields for multiple images from one place.

License: MIT License

Python 55.35% CSS 2.86% JavaScript 16.57% HTML 25.22%

wagtail-multi-image-edit's Introduction

CircleCI

Wagtail Multi Image Edit

Wagtail Multi Image Edit offers a solution to editing and updating data fields for multiple images from one place.

multi image edit eg

multi image edit form

Installation

Wagtail Multi Image Edit has a pypi package and can be installed with:

pip install Wagtail-Multi-Image-Edit

After installing, add it to INSTALLED_APPS in your settings file

INSTALLED_APPS = [
    ...
    'wagtail_multi_image_edit',
]

Add the new url pattern and view import to urls.py:

from wagtail_multi_image_edit.views import multi_image_edit

urlpatterns = [
    url(r'^admin/images/multi-edit/', multi_image_edit, name='multi_image_edit'),

Add the needed templates by adding the following to your settings where TEMPLATES is defined:

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'APP_DIRS': True,
        'DIRS': [
            'wagtail_multi_image_edit/templates'
            ],
        ...

Finally, add which fields you want to be exposed by adding the following to your settings:

MULTI_IMAGE_EDIT_FIELDS = [
    'title',
    'collection',
    'tags',
]

Note

The plugin will override the core wagtail template wagtailimage/images/results so select boxes can be added. You may need to carry out extra template work if you are already customising this core template.

Thank you to...

@katestatton For the initial concept and direction.

@gasman For code guidance and form validation.

@noslouch For great JS feedback.

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.