Feature: #106828 - Add user TSconfig to define default live search action 

See forge#106828

Description 

A new user TSconfig option options.liveSearch.actions 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 except pages.
  • layout: Opens the page in the Page module. This is the default for the pages table.
  • list: Opens the storage page of the record in the Record List module.
  • preview: Opens the record in the frontend.

Examples 

Set the default for all tables:

options.liveSearch.actions.default = edit
Copied!

Set the default for the tt_content table:

options.liveSearch.actions.tt_content.default = layout
Copied!

Set the default for a custom table:

options.liveSearch.actions.my_table.default = preview
Copied!

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.