From f0fe8eebc57160c1e4bf01dbd4c019f4a00a29cf Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Sep 2024 11:13:30 +1200 Subject: [PATCH] DOC Rename TopPage classes --- en/08_Changelogs/6.0.0.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/en/08_Changelogs/6.0.0.md b/en/08_Changelogs/6.0.0.md index d15135d6..fd908e18 100644 --- a/en/08_Changelogs/6.0.0.md +++ b/en/08_Changelogs/6.0.0.md @@ -21,6 +21,7 @@ title: 6.0.0 (unreleased) - [GraphQL removed from the CMS](#graphql-removed) - [Most extension hook methods are now protected](#hooks-protected) - [Strict typing for `Factory` implementations](#factory-strict-typing) + - [Elemental `TopPage` class names changed](#elemental-top-page) - [General changes](#api-general) - [Other changes](#other-changes) - [MySQL 5 no longer supported](#mysql-5-support) @@ -353,6 +354,18 @@ Injector::inst()->load([ ]); ``` +### Elemental `TopPage` class names changed {#elemental-top-page} + +The class names for the `TopPage` feature in [`dnadesign/silverstripe-elemental`](https://github.com/silverstripe/silverstripe-elemental) did not follow the correct naming convention for Silverstripe CMS. The class names have been changed as follows: + +|old name|new name| +|---|---| +|`DNADesign\Elemental\TopPage\DataExtension`|`DNADesign\Elemental\Extensions\TopPageElementExtension`| +|`DNADesign\Elemental\TopPage\FluentExtension`|`DNADesign\Elemental\Extensions\TopPageElementFluentExtension`| +|`DNADesign\Elemental\TopPage\SiteTreeExtension`|`DNADesign\Elemental\Extensions\TopPageSiteTreeExtension`| + +If you reference any of these classes in your project or module, most likely in config if you have [`tractorcow/silverstripe-fluent`](https://github.com/tractorcow/silverstripe-fluent) installed, then you will need to update the references to the new class names. + ### General changes {#api-general} - [`DataObject::write()`](api:SilverStripe\ORM\DataObject::write()) has a new boolean `$skipValidation` parameter. This can be useful for scenarios where you want to automatically create a new record with no data initially without restricting how developers can set up their validation rules.