Skip to content

Commit 7ab3f1f

Browse files
Merge pull request #542 from creative-commoners/pulls/5/elemental-validation
DOC Document always inline saving elements
2 parents c45bebe + 64ae231 commit 7ab3f1f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

en/08_Changelogs/5.3.0.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: 5.3.0 (unreleased)
99
- [Features and enhancements](#features-and-enhancements)
1010
- [High-level API for converting files](#file-converter)
1111
- [Improve customisability of rendered images](#image-rendering)
12-
- [Validation for elemental content blocks when saving individual blocks](#elemental-validation)
12+
- [Validation for inline-editable elemental blocks](#elemental-validation)
1313
- [Define scaffolded form fields for relations to `DataObject` models](#scaffolded-relation-formfields)
1414
- [Support for `JOIN` in SQL `UPDATE`](#sql-update-join)
1515
- [Autologin token regeneration changes](#autologin-token-regeneration)
@@ -74,12 +74,14 @@ You can also choose to have different rendering logic for `HTMLEditorField` imag
7474
- Add a `SilverStripe/Assets/Shortcodes/ImageShortcodeProvider_Image.ss` to your theme to control images added to an HTMLEditorField.
7575
- Add a `DBFile_Image.ss` file to the root of your theme to control only images invoked in templates.
7676

77-
### Validation for inline-editable elemental content blocks {#elemental-validation}
77+
### Validation for inline-editable elemental blocks {#elemental-validation}
7878

7979
Elemental content blocks now support validation when saving or publishing individual content blocks using the "three-dot" context menu in the top-right of the block.
8080

8181
Validation can be added to a content block using standard [Model Validation and Constraints](https://docs.silverstripe.org/en/5/developer_guides/model/validation/#validation-and-constraints) by implementing a [`DataObject::validate()`](api:SilverStripe\ORM\DataObject::validate()) method on a content block, or by using [Form Validation](https://docs.silverstripe.org/en/5/developer_guides/forms/validation/#form-validation) where there are several options available.
8282

83+
Elemental data is no longer sent when saving the parent `DataObject` (usually a `Page`) that contains an [`ElementalAreaField`](api:DNADesign\Elemental\Forms\ElementalAreaField). Instead, when saving the parent `DataObject`, all the child inline-editable elements that have unsaved changes are inline saved at the same time. This change was done to consolidate the saving process down to a single code path. The code that was previously used to process any element data sent with the parent data has been removed.
84+
8385
### Define scaffolded form fields for relations to `DataObject` models {#scaffolded-relation-formfields}
8486

8587
Most `DataObject` classes will rely on some amount of automatic scaffolding of form fields in their [`getCMSFields()`](api:SilverStripe\ORM\DataObject::getCMSFields()) implementations. However, it's common for modules to provide a specialised form field which is intended to always be used with a specific `DataObject` class. In those cases, even though you always want to use that form field with that class, you have to copy some boilerplate code from the module's documentation to set it up.

0 commit comments

Comments
 (0)