Review 13.4 Merged

88057[BUGFIX] Auto-select tree nodes in module deeplinks

Benjamin Franzke CR +2 V +2 Hard +434 −183 updated 02/06/25, 15:35

Commit message

Select pages and folders in the respective trees when opening module
routes via shared deeplinks, topbar bookmarks or via the opendocs menu.
This also implicitly retains the current tree selection when reloading
the TYPO3 backend.

The module state handling is slightly changed to better isolate
responsibility for the tree selection states:
 * modules are allowed to update the `identifier` property
   only (reflecting the current page id or folder identifier)
 * `treeIdentifier` property is the sole domain of the
   tree components (only the tree can know, which node –
   in case nodes are mounted multiple times – is to be selected)

Various tree components are updated to prepare nodes not only during
initial load but also during runtime (in order for selection to work in
any case) and have a post-initialization check to load nodes recursively
if the currently active node (per module state storage) is not visible.

Out-of-scope for this patch:
Tree nodes can not be auto-opened if a FormEngine view is loaded
(or any other non-module backend controller) as there is no module
and tree state attached to FormEngine, therefore shared Fomengine
deeplinks currently lack module context.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 2

Files 31

Show 11 more files

Review log 34

  1. Benjamin Franzke uploaded patch set 1 02/06/25, 15:19

  2. core-ci voted on patch set 1 V +1 02/06/25, 15:27 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73670

  3. Benjamin Franzke commented on patch set 1 CR +2 V +2 02/06/25, 15:34

    This change is ready for review.
  4. Benjamin Franzke merged patch set 2 02/06/25, 15:35