Add a message when origin text format is not available on site

Created on 4 September 2024, 4 months ago

Problem/Motivation

Currently, imports of nodes with a body_format that doesn't exist work fine, in the sense that no error or warning is given and the body_value is imported correctly, but the field will be blank on the UI until you manually edit the node, select (one of the existing, on this site) text formats, and save it (or ofc after you import/create a text format with the same name and re-save the node).

Proposed resolution

It would be nice to have a warning message for the user after the import, like:

Node [title] had a missing [text_format_name] on its [field_name] field. Either import the text format from the origin site and re-save it to see it as originally intended, or manually edit it and select one of the available text formats.

And some additional settings at /admin/config/content/single-content-sync to decide what to do in these situations, like:

  • ☐ Show a warning message when importing unavailable text formats
  • Textarea to customize the message
  • Alternatively, automatically change the text format to [let the user select the text format], and add a different notice message [text_area to customize it]

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Production build 0.71.5 2024