Skip to content

Site Editing: Restrict block editing capabilities based on editing context #27848

@jameskoster

Description

@jameskoster

In site editing, we will soon have a need for blocks to be aware of the context in which they are being edited, and their capabilities restricted accordingly. IE:

On a per-block basis this will help to indicate whether the scope of the selected entity is local to the current document, or global.

There are two parts to this issue on the design side:

  1. In the scenarios above, we'll need a UI pattern to indicate how the blocks are restricted (perhaps a scrim/overlay on content, faded-out Toolbar icons, etc).
  2. It should be possible switch between editing the content and the template, intentionally bypassing the restrictions ad hoc.

Additional bonus part: Visual distinction for template parts due to the unique position they occupy in all of this.


This is quite complicated, but closely related to the above, so I'm adding it here for now and acknowledging that it may need to be split out in to a separate issue:

Different properties of the same block may need to be governed by different contexts. For example the alignment of the Featured Image block should be governed by the template, but the URL to the featured image should be governed by the post. It should also be possible in some cases for posts to "override" template-governed properties without needing to spawn an entirely new template, although that should also be possible when desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DesignNeeds design efforts.Needs Design FeedbackNeeds general design feedback.[Feature] BlocksOverall functionality of blocks[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions