close
Skip to content

Dynamic galleries and media attached to a post #76955

@mtias

Description

@mtias

This is an overview issue for a series of improvements we could do to the media publishing flow, particularly to the "media attached to a post type" path.

Media Inserter

The media tab on the main block inserter is quite underutilized. I propose we display the images attached to the current post directly in the sidebar surface, with a similar thumbnail display to the one we use on the “external media items” for the pre-publishing flow. There’s a few mechanics that this grid view could support — insert a gallery with all the images; add / detach images from the post; drag a single item into the canvas to insert as a block or set as a cover background. cc @ellatrix since we discussed some of this for the external media work.

Gallery Block

It’s due time to support a dynamic toggle in the gallery block so that we mimic the behavior of a [gallery] shortcode with no image ids set and dynamic rendering. This should support sorting features like reverse order, random order. Once toggled, it should be super clear to the user how it works.

Shortcode

I believe we already convert a gallery shortcode properly on a "convert to blocks" pass, with some exceptions for plugins extending the older gallery system. However, we can handle a gallery shortcode from classic content flow better. For example, in the shortcode block we could offer a “convert to gallery block” shortcut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] GalleryAffects the Gallery Block - used to display groups of images[Feature] MediaAnything that impacts the experience of managing media[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions