#105560Select node of page tree via JS/PHP
Description
In previous versions of TYPO3 it’s been possible to select a node of the page tree via JS:
<script type="text/javascript">
if (top && top.TYPO3.Backend.NavigationContainer.PageTree) {
top.TYPO3.Backend.NavigationContainer.PageTree.select(76);
}
</script>
Unfortunately that’s gone for some time now.
Since TYPO3 11 there’s proper backend routing, so linking to a (custom) BE module is possible and often done with the `id` parameter to open a module “on” a specific page. Unfortunately the page tree doesn’t reflect that new node. Is there a reason behind that?
Nevertheless it’d be great to have the possibility as a developer of a BE module to be able to update the selected node of the page tree.
Analog to this snippet maybe?
<f:be.pageRenderer includeJavaScriptModules="{
1: '@typo3/backend/element/immediate-action-element.js'
}" />
<f:variable name="args" value="{0:'typo3:pagetree:mountPoint',1:{pageId:22},2:1}"/>
<typo3-immediate-action
action="TYPO3.Backend.Event.EventDispatcher.dispatchCustomEvent"
args="{args -> f:format.json() -> f:format.htmlspecialchars()}"
></typo3-immediate-action>Reviews 1
Related issues 2
History 26
-
Gerrit Code Review pushed patch set 1 for main to change 86923 status
NewUnder Review <span data-processor="relativetime" data-value="2024-11-08T17:07:16+00:00" > 11/08/24, 17:07 </span> -
Gerrit Code Review pushed patch set 2 for main to change 86923 <span data-processor="relativetime" data-value="2024-11-09T09:42:29+00:00" > 11/09/24, 09:42 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 86923 <span data-processor="relativetime" data-value="2024-11-09T17:26:32+00:00" > 11/09/24, 17:26 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 86923 <span data-processor="relativetime" data-value="2026-09-23T20:51:53+00:00" > 09/23/26, 20:51 </span>
-
Benni Mack changed Related to #109623 <span data-processor="relativetime" data-value="2026-11-10T06:32:09+00:00" > 11/10/26, 06:32 </span>
-
Benni Mack changed Related to #102382 <span data-processor="relativetime" data-value="2026-11-10T07:24:30+00:00" > 11/10/26, 07:24 </span>