Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review Quiet

86923[TASK] Add event to select a node in the page tree

Philipp Kitzberger CR 0 V 0 Easy +19 −1 updated 09/25/26, 20:33

Commit message

This enables a developer of a backend module to update the page tree
and select a specific node as active via an "immediate action" fired
from a Fluid template.

Example:

```
<f:be.pageRenderer includeJavaScriptModules="{
    0: '@typo3/backend/element/immediate-action-element.js'
}" />
<f:variable name="args" value="{
    0: 'typo3:pagetree:selectNode',
    1: {pageId: 123},
    2: 1
}" />
<typo3-immediate-action
    action="TYPO3.Backend.Event.EventDispatcher.dispatchCustomEvent"
    args="{args -> f:format.json() -> f:format.htmlspecialchars()}"
></typo3-immediate-action>
```

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 4
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/23/86923/4 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/23/86923/4 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 2

Review log 59

  1. Philipp Kitzberger uploaded patch set 1 11/08/24, 17:07

  2. core-ci voted on patch set 1 V -1 11/08/24, 17:12 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69236

  3. Philipp Kitzberger uploaded patch set 2 V -1 11/09/24, 09:42

  4. core-ci voted on patch set 2 V +1 11/09/24, 09:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69252

  5. Philipp Kitzberger uploaded patch set 3 V +1 11/09/24, 17:26

  6. core-ci voted on patch set 3 V +1 11/09/24, 17:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69255

  7. Benni Mack uploaded patch set 4 V +1 09/23/26, 20:51

  8. core-ci voted on patch set 4 V +1 09/23/26, 21:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109113

  9. Stefan Bürk commented on patch set 4 09/25/26, 20:33

    Unresolved

    TBH not tested - but what happens if a module does not have a page tree ? Beside that, isn't the casual workflow to redirect to the module/submodule controler with the pageUid so also the route in the browser, history and everything has it in place ? This would only update the pageTree (if displayed) but leaving eveything else where it is (share link if current page, breadcrumb, ....) ? Or do I miss something ?