You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Other new features and enhancements](#other-new)
13
14
-[API changes](#api-changes)
14
15
-[Bug fixes](#bug-fixes)
@@ -89,6 +90,15 @@ Note that the order of attributes in the `<script>` and `<link>` HTML elements i
89
90
90
91
If you have implemented a custom requirements backend, we recommend updating it to handle arbitrary attributes passed into the various `$options` parameters.
91
92
93
+
### Filter archived records
94
+
95
+
The "Archive" admin section now uses [`GridFieldFilterHeader`](api:SilverStripe\Forms\GridField\GridFieldFilterHeader) and [`SearchContext`](api:SilverStripe\ORM\Search\SearchContext) to allow filtering archived records. The available filters are whatever is defined in [`searchable_fields`](/developer_guides/model/scaffolding/#searchable-fields) for that class, with the below changes:
96
+
97
+
- For page records, the "Page status" filter field is removed in the archive admin filter form. That filter is used in the "Pages" section to filter by different versioned states, but isn't needed here.
98
+
- For all archived records a "Date Archived" filter is added to filter by a range of archive dates.
99
+
100
+
To facilitate this functionality, we've added a way to add extra searchable field configuration to a `SearchContext` instance through [`SearchContext::addAdditionalFieldSpecs()`](api:SilverStripe\ORM\Search\SearchContext::addAdditionalFieldSpecs()) and [`SearchContext::setAdditionalFieldSpecs()`](api:SilverStripe\ORM\Search\SearchContext::setAdditionalFieldSpecs()). If you implement a custom `SearchContext` subclass, you should use [`SearchContext::getSearchFieldsSpec()`](api:SilverStripe\ORM\Search\SearchContext::getSearchFieldsSpec()) instead of directly calling [`searchableFields()`](api:SilverStripe\ORM\DataObject::searchableFields()).
101
+
92
102
### Other new features and enhancements {#other-new}
93
103
94
104
- The `help` plugin is now added by default to all [`TinyMCEConfig`](api:SilverStripe\TinyMCE\TinyMCEConfig) instances. If you were adding it manually, you can remove that custom code. If for some reason you don't want that plugin in one of your configs, you can use [`TinyMCEConfig::disablePlugins()`](api:SilverStripe\TinyMCE\TinyMCEConfig::disablePlugins()) to remove it - but be aware that it is extremely useful for screen reader users to keep this plugin installed.
0 commit comments