Allow users with "View unpublished paragraphs" permission to see unpublished paragraphs

Created on 26 July 2024, 5 months ago
Updated 6 August 2024, 4 months ago

Problem/Motivation

The existing configuration of the Paragraphs module does not support reference changes for paragraphs when translating content. This limitation hinders the flexibility needed for certain use cases where references need to be modified during translations.

Steps to reproduce

Install and enable the Paragraphs module.
Configure the Paragraphs module to enable translations.
Attempt to change references for paragraphs while translating.
Notice that the option to change references is not available.

Proposed resolution

Introduce a new configuration option, allow_reference_changes, to the Paragraphs module settings. This option will allow users to enable or disable reference changes for paragraphs during translations

User interface changes

A new checkbox will be added to the Paragraphs settings form to enable or disable reference changes for paragraphs during translations.

API changes

The following methods in the Paragraphs module will be updated to respect the new configuration setting:
InlineParagraphsWidget::formElement
InlineParagraphsWidget::addMore
ParagraphsWidget::allowReferenceChanges

Data model changes

The paragraphs.settings configuration schema will be updated to include the new allow_reference_changes option.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India akshaykamble Mumbai

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

Comments & Activities

Production build 0.71.5 2024