Add configuration to disable "Move" and "Add" paragraph buttons.

Created on 21 October 2024, about 2 months ago

Currently, the "Move" and "Add Before/After" buttons for paragraphs are always visible in frontend editing, which may not be necessary or desired in all cases. i.e. in cases for some sites where layout builder is configured for moving paragraph blocks from one section to another and authors still need to utilize the "Edit" page for the heavier lifting like adding paragraphs.

While use cases for new builds might be minimal, older site builds that have different methods in place could utilize this to prevent unnecessary rewrites to keep some of the old functionality intact.

✨ Feature request
Status

Needs review

Version

1.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jv24

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jv24
  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    Frontend editing comes with 2 permissions for moving and adding paragraphs: move paragraphs and add paragraphs. The links should not be displayed for the roles that do not have those permissions.

    Adding a new configuration will conflict with those permissions, don't you think so?

  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    Moreover, there is an event ParagraphAddAccess with which you can modify the result of allowAdd check. And for moving up/down there is another event ParagraphMoveAccess.

    I would recommend that you implement event subscribers in the custom module if the permissions granularity is not enough for your use case.

Production build 0.71.5 2024