Skip to content

Commit 1e13d85

Browse files
DOC Document campaign admin filter functionality (#844)
1 parent ec80ac8 commit 1e13d85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

en/08_Changelogs/6.2.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ title: 6.2.0 (unreleased)
1010
- [Accessibility improvements](#accessibility-improvements)
1111
- [Pass arbitrary attributes with requirements API](#requirements-attributes)
1212
- [Filter archived records](#filter-archived-records)
13+
- [Filter campaigns](#filter-campaigns)
1314
- [Other new features and enhancements](#other-new)
1415
- [API changes](#api-changes)
1516
- [Bug fixes](#bug-fixes)
@@ -104,6 +105,12 @@ The "Archive" admin section now uses [`GridFieldFilterHeader`](api:SilverStripe\
104105

105106
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()).
106107

108+
### Filter campaigns
109+
110+
The "Campaigns" admin section which is added through [`silverstripe/campaign-admin`](https://github.com/silverstripe/silverstripe-campaign-admin/) now uses [`GridFieldFilterHeader`](api:SilverStripe\Forms\GridField\GridFieldFilterHeader) and [`SearchContext`](api:SilverStripe\ORM\Search\SearchContext) to allow filtering campaigns.
111+
112+
You can filter by the name and description of the campaign, its status, and the publish date. This is all powered by [`searchable_fields`](/developer_guides/model/scaffolding/#searchable-fields) configuration for the [`ChangeSet`](api:SilverStripe\Versioned\ChangeSet) class, so you can customise the search fields by changing that configuration if you want to.
113+
107114
### Other new features and enhancements {#other-new}
108115

109116
- 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

Comments
 (0)