Feature: #106828 - Add user TSconfig to define default live search action
See forge#106828
Description
A new user TSconfig option
options. has
been introduced to allow integrators to define the default behavior of a
search.
Available actions:
edit: Opens the edit form of the record. This is the default for all tables exceptpages.layout: Opens the page in the Page module. This is the default for thepagestable.list: Opens the storage page of the record in the Record List module.preview: Opens the record in the frontend.
Important
The layout action can only be used for the
pages and
tt_ tables.
Examples
Set the default for all tables:
options.liveSearch.actions.default = edit
Set the default for the tt_ table:
options.liveSearch.actions.tt_content.default = layout
Set the default for a custom table:
options.liveSearch.actions.my_table.default = preview
Note
To use preview for a custom record, a valid preview configuration
must exist for the table in TCEMAIN..
Impact
The default actions of live search results can now be configured with user TSconfig. Integrators can define global and table-specific behavior for search results, improving backend workflows.
The default behavior for pages has been changed to layout to improve
the user workflow.