silverstripe-framework/docs/en/04_Changelogs/4.11.0.md

3.6 KiB

4.11.0 (unreleased)

Overview

Regression test and Security audit

This release has been comprehensively regression tested and passed to a third party for a security-focused audit.

While it is still advised that you perform your own due diligence when upgrading your project, this work is performed to ensure a safe and secure upgrade with each recipe release.

Dropping support for PHP 7.3

In accordance with our PHP support policy, Silverstripe CMS Recipe release 4.11.0 drops support for PHP 7.3. We expect to drop support for PHP 7 altogether around January 2023.

Features and enhancements

Preview any DataObject in any admin section

The CMS preview panel has historically been available for Versioned DataObjects in the Pages admin section. This has now been expanded to allow any DataObject (regardless of whether it uses theVersioned extension) to be previewed in any section of the CMS.

This can be used to allow content authors to see the content they are creating in the context it will be presented to users. Example use cases include previewing DataObjects which belong to a page (e.g. the dnadesign/silverstripe-elemental module allows previewing elemental blocks which are not inline-editable), and previewing DataObjects in a custom admin section, such as templates for emails or system-generated PDF documents.

The Preview Documentation has been updated with code examples which show how to enable CMS preview on DataObjects in a couple of different scenarios.

Other new features

  • A new AbstractGridFieldComponent class has been added to make it easier to globally add fundamental functionality to GridFieldComponents. All classes packaged with the Silverstripe framework which implement the GridFieldComponent interface are subclasses of the new abstract class, making them all Injectable. Maintainers of third-party packages which include classes that implement GridFieldComponent are encouraged to subclass the AbstractGridFieldComponent abstract class.
  • New options have been added to the dnadesign/silverstripe-elemental module to control what content is indexed for searching elemental blocks. see the documentation for details.

Bugfixes

This release includes a number of bug fixes to improve a broad range of areas. Check the change logs for full details of these fixes split by module. Thank you to the community members that helped contribute these fixes as part of the release!

Internal API changes

  • Fixed typo in SilverStripe\Core\CoreKernel protected variable $enviroment, now $environment.
    If you've extended CoreKernel and not using the appropriate getter/setter methods, please update your code.