Problem/Motivation

The EditComponentForm only moves fields that begin with 'field_* into the Mercury Editor dialog 'Content' tab.
@see mercury_editor_form_layout_paragraphs_component_form_alter()

Drupal core only supports field names that begin with 'field_*,' but technically, a field can be any name (with a few name conflict exceptions like nid, created, status, etc...). The Schema.org Blueprints module prefixes Schema.org fields with 'schema_*' and Field Prefix module allows sites to customize the field prefix or remove the default prefix field_.

Steps to reproduce

Create a field on a Mercury Editor paragraph whose name does not start with 'field_*' using the Schema.org Blueprints module or Field Prefix module.

Proposed resolution

Allow fields that do not start with 'field_' to be included in the edit component 'Content' tab.

Adjust mercury_editor_form_layout_paragraphs_component_form_alter() to move all field definitions (not base field) to the 'Content' tab.

Remaining tasks

  • Create MR
  • Review MR
  • Commit MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review
sethhill’s picture

Status: Needs review » Reviewed & tested by the community

I tested the MR against 2.1.x and it resolves the behavior reported, it should be good to merge. Setting to RTBC.

  • sethhill committed 7a1a7c94 on 2.1.x authored by jrockowitz
    Issue #3468531 by jrockowitz, sethhill: Allow fields that do not start...
sethhill’s picture

Status: Reviewed & tested by the community » Fixed

  • sethhill committed 7a1a7c94 on 2.2.x authored by jrockowitz
    Issue #3468531 by jrockowitz, sethhill: Allow fields that do not start...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.