Here is how I did it. In the PHP module of my BE module, I called only openPageTree as follows:
t3lib_BEfunc::openPageTree(76,false);
I did not call setUpdateSignal because the whole process of “updating the signal” seemed a little strange to me. Also note that openPageTree now has a second parameter, which is required.
As far as I understand, this call should be enough to set the state of the tree on the session side of the user. Now comes the client side.
In the JavaScript code of my extension, I simply select the appropriate page identifier and that it:
<script type="text/javascript"> if (top && top.TYPO3.Backend.NavigationContainer.PageTree) { top.TYPO3.Backend.NavigationContainer.PageTree.select(76); } </script>
When viewing the source of the page tree, I realized that after the update, he will always select top.fsMod.recentIds['web'] . Unfortunately, I could not determine how to correctly enter the value there. It seemed to me that the value should be configured only through user interaction (this means that the user clicked on a node in the page tree).
Oliver salzburg
source share