Issue Task Under Review Quiet

#111269Use searchable selects in backend modules

Matthias Vogel 10/28/26, 14:24 updated 10/29/26, 09:22

Description

  1. introduces <typo3-backend-searchable-select> and uses it for FormEngine selectSingle and country fields. Several other backend selects regularly list many entries (users, groups, tables, languages, hosts, types) and benefit from the same search.

This task wraps those single selects. Multiple selects and listboxes (size > 1) stay native. On touch devices without hover the native select UI is kept. With seven or more options the search field shows on opening; with fewer options typing reveals it.

The element is additionally loaded in the backend main frame, as modals render there and not in the module iframe.

How to test

For every location below: open the select, type a part of an option, pick an entry with Enter or a click and check that the module reacts as before (filter applied, form value saved, navigation done).

  1. Site configuration: Site Management > Sites > edit a site > tab “Languages”. The selects “Choose a preset…” and “Use Language from existing site…” next to “Create new language”. Picking an entry still adds the language.
  2. Access: Users > Access, select a page, edit its permissions. Selects “Owner” and “Group”. Also in the list: click the owner or group name of a page; the inline selector loaded via AJAX is searchable, saving still works.
  3. Form editor: Forms > open a form > add/select a “Country select” element > inspector field “Default value” (~250 countries). Inspector “Validators > Add validator” of any field and “Finishers > Add finisher” on form level. The multi selects “Prioritized/Only/Exclude countries” stay native.
  4. Advanced query: System > Database > “Advanced query”. Selects “Table”, the field selects of each condition row and the stored queries in “Load/Save query”.
  5. Inline relation with foreign_selector: Styleguide > Manage page trees > “Create styleguide page tree with data”. Page “styleguide TCA demo > inline usecombination”, open the “Form engine – inline use combination” record. Field inline_1: the select next to “Create new”. Field inline_2 uses autoSizeMax and stays a native listbox.
  6. Log: System > Log, filter “Users” (grouped by groups and users) and “Workspace” (only with workspaces installed).
  7. Backend users: Users > Backend users, filter “Group”.
  8. Redirects, QR codes, Short URLs: Link Management > Redirects, filters “Source host” and “Created by”; QR codes and Short URLs, filter “Source host”. The filters only show when records exist.
  9. Info module: Status > Pagetree Overview and Localization Overview, select a page. Selects “Language”, “Depth” and “Pages”.
  10. Webhooks: Integrations > Webhooks, filter “Type” (needs at least one webhook).
  11. Reactions: Integrations > Reactions, filter “Impersonate user” (needs at least one reaction).
  12. Workspaces: switch to a workspace, Content > Workspaces. Filters “Language” (with flag icon) and “Stage”.
  13. Import/Export: page tree context menu > More options > Import: select “File”. Export: tab “File & Preset”, select “Preset” (needs a saved export preset).
  14. Bookmarks: toolbar > Bookmarks > Manage bookmarks, edit a bookmark, select “Group”.
  15. Record download: needs download presets, e.g. Page TSconfig:
mod.web_list.downloadPresets {
    tt_content {
        10 {
            label = Quick overview
            columns = uid, pid, CType, header, colPos
        }
        20 {
            label = UID and headers only
            columns = uid, header
        }
    }
}

Content > Records, page with content elements, table “Page Content” > “Download”. The select “Preset” in the modal is searchable and the chosen preset is used for the download.

Not included

  • “Create multiple pages” (page type select): new rows are cloned via innerHTML, which would duplicate the rendered trigger.
  • FormEngine value picker: it sits next to a text input and would need a special case.
  • Fixed short lists (depth, status, log level and similar) in other modules.

Reviews 1

History 13