Convert the manual form fields to core field handling

Created on 29 May 2023, about 1 year ago

Problem/Motivation

In G2 D4.7/D5/D6, the expansion, complement, and origin fields are handled by G2 with specific logic, e.g. g2_form.

Because D7+ has fields in core, that logic should no longer be needed, and should be replaceable by config.

Steps to reproduce

n.a.

Proposed resolution

Revise / remove:

  • g2_form : use form modes
  • g2_insert : should be stored automatically with node
  • g2_load : should be loaded automatically with node
  • g2_update : should be stored automatically with node
  • g2_view : should be formatted according to view modes, but contains some side-effect which may still need an implementation
  • theme_g2_body : default field formatting with view modes
  • theme_g2_period : default field formatting with view modes
  • theme_g2_teaser : default field formatting with view modes

Also, remove the CTools contexts integration, which has no direct equivalent in D8+, and applies to fields too: g2_init, g2_preprocess_page, and g2_view.

Remaining tasks

Remove code and validate UI.

User interface changes

Node form is more standard.

API changes

None.

Data model changes

The extra G2 fields are now revisioned instead of being non-revisioned.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France fgm Paris, France

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

Comments & Activities

Production build 0.69.0 2024