Skip to main content

Wagtail Multi Image Edit

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Wagtail-Multi-Image-Edit, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size Wagtail_Multi_Image_Edit-0.0.5-py3-none-any.whl (11.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Wagtail Multi Image Edit-0.0.5.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page