[BUGFIX] PageTree cannot select/expand hidden nodes 55/32155/11
authorOliver Hader <oliver@typo3.org>
Sun, 20 Jul 2014 11:56:35 +0000 (13:56 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 30 Mar 2016 20:22:55 +0000 (22:22 +0200)
commit9aaab9b3e657131f536cbaa212227e983cf8e486
tree21ac64c9f27c8d9a1c498f6b3f2785e6d311197f
parent3609f6e6e2dd9f5a53a5dab57e31d85d08b7aefc
[BUGFIX] PageTree cannot select/expand hidden nodes

TYPO3.Backend.NavigationContainer.PageTree.select(64) does not
select the correct page, but tries to determine the correct node
levels, fakes the local node states and reloads the page tree.
One thing that might not be considered there is the fact that
pages are represented in hex-values with a leading "p", thus
the integer "64" will be converted to "p40" as node id.

To overcome this scenario and enable custom handling there,
a new generic method is introduced:
TYPO3.Backend.NavigationContainer.PageTree
.invokePageId(pageId, callback, allResults);

The methods "selectPageId" and "expandPageId" show how this
is actually used.

Resolves: #60405
Releases: master, 7.6
Change-Id: If24b1a0ec261e9bcf00d214bf10c4b4a0aa5bed5
Reviewed-on: https://review.typo3.org/32155
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/app.js