Skip to main content

Frontend editing for your Wagtail site

Project description

wagtail_fedit

Wagtail FEdit Example

Wagtail FEdit is a library to allow your Wagtail pages and content-blocks to be edited on the frontend.

View the documentation

Getting Started

  1. Add 'wagtail_fedit' to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
    ...,
    'wagtail_fedit',
    ]
    
  2. Run py ./manage.py collectstatic.

  3. Run py ./manage.py adapter_help to see all your options and their requirements.

How your content is rendered

(Maintainer's note: In my experience this doesn't mess the CSS up too much, or even at all for most content - if you don't get hyperspecific with your CSS selectors and structure your templates well.)

Your block and field are wrapped in a div, any CSS for your templates should keep this in mind.

Rendered editable output HTML

{% load fedit %}<div id="{{ unique_id }}" data-wrapper-id="{{ unique_id }}" class="wagtail-fedit-adapter-wrapper{% if shared_context.inline or adapter.inline %} wagtail-fedit-inline{%endif%} wagtail-fedit-{{ identifier }}" data-fedit-constructor="{{ js_constructor }}" {% if shared %} data-shared-context="{{ shared }}"{%endif%} data-edit-url="{{ edit_url }}" data-refetch-url="{{ refetch_url }}">
    <div class="wagtail-fedit-buttons">
        {% for button in buttons %}
            {{ button }}
        {% endfor %}
    </div>{% render_adapter adapter %}
</div>

Implemented

  • Editing fields/blocks on the frontend
  • Moving blocks on the frontend
  • Adding blocks on the frontend
  • High compatibility with custom widgets and blocks
  • Revision Support
  • Locked Support
  • Draft Support
  • Preview Support
  • Workflow Support
  • Permissions
  • Audit Logs

Project details


Release history Release notifications | RSS feed

This version

1.6.1

Download files

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

Source Distribution

wagtail_fedit-1.6.1.tar.gz (105.1 kB view details)

Uploaded Source

File details

Details for the file wagtail_fedit-1.6.1.tar.gz.

File metadata

  • Download URL: wagtail_fedit-1.6.1.tar.gz
  • Upload date:
  • Size: 105.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for wagtail_fedit-1.6.1.tar.gz
Algorithm Hash digest
SHA256 d410e14db9156b7b68903db97988c8e3edd5431d302005d3010c65f19d138b88
MD5 6a83cf73f1a0864730834a411f7c3e60
BLAKE2b-256 e63f61b84ba99f8a50463a455d15c830781e06f06a82296c94054deaeca5c0b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page