silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
110 stars 115 forks source link

Convert ElementalEditor GridField to a React based equivalent #272

Closed robbieaverill closed 6 years ago

robbieaverill commented 6 years ago

Prior to beginning work on inline editing of content blocks, we'll need to:

Create a new react app - e.g. ElementalEditor and power as much of this with React, GraphQL and form factory/schema as possible now to pave the way for the react driven CMS in future.

We don't need to continue using gridfield for elemental, particularly because the editor only really has one column.

Acceptance criteria

Subtasks

robbieaverill commented 6 years ago

Clarification on an acceptance criteria point:

(A/C) Page will have one elemental area

Elemental currently supports multiple elemental areas per page, but only provides one out of the box.

We'll implement this in a way that works for the default ElementalArea relationship, but attempt to document how devs can add more elemental editors for extra relationships they want to add.

It's unlikely to be as easy as it was with PHP GridFields.

robbieaverill commented 6 years ago

Edit ability (via GridFieldDetailForm) still works

We looked at removing GridField as a backend as part of this work, but until we have a React replacement for an edit form we'll need to keep it there to support blocks that won't be able to be edited inline (such as userform blocks).

For more info, see https://github.com/silverstripe/silverstripe-admin/issues/590