[FEATURE] Add PSR-14 event to ignore tables in Live Search
The TYPO3 backend search (aka "Live Search") has a `\TYPO3\CMS\Backend\Search\LiveSearch\DatabaseRecordProvider` that searches all records in database tables that have `searchFields` configured. In some individual cases it may not be desired to search in a certain table, therefore a new event `BeforeSearchInDatabaseRecordProviderEvent` is introduced to add tables to a deny list. The event is directly used by TYPO3 to exclude the "pages" table. Resolves: #99033 Releases: main Change-Id: I956085d02576dae60ae6ffb011c9c3a695e08d4f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76522 Tested-by:Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Search/Event/BeforeSearchInDatabaseRecordProviderEvent.php 79 additions, 0 deletions...earch/Event/BeforeSearchInDatabaseRecordProviderEvent.php
- typo3/sysext/backend/Classes/Search/EventListener/ExcludePagesFromSearchFieldsLookup.php 33 additions, 0 deletions...arch/EventListener/ExcludePagesFromSearchFieldsLookup.php
- typo3/sysext/backend/Classes/Search/LiveSearch/DatabaseRecordProvider.php 14 additions, 8 deletions...kend/Classes/Search/LiveSearch/DatabaseRecordProvider.php
- typo3/sysext/backend/Configuration/Services.yaml 6 additions, 0 deletionstypo3/sysext/backend/Configuration/Services.yaml
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-99033-AddTableFilterForBackendSearch.rst 67 additions, 0 deletions...log/12.1/Feature-99033-AddTableFilterForBackendSearch.rst
Please register or sign in to comment