Bug #24882
closedpagetree->expand branch does not work as expected
0%
Description
When I click "expand branch" in the new pagetree once it simply expands the next level und the page where I opened the context menu.
When I click the same context menu link (at the same page) a second time it expands all pages on all levels below the page where I clicked.
I'd expect the tree either doing the first OR the second action but not 2 different actions on the same useraction.
I suggest to remove this option completely (or make it removable by configuration) because expanding ALL pages in a huge pagetree does not make much sense in real live and it puts a VERY HIGH LOAD on the server.
Additionally it leads to other errors - see linked bug.
(issue imported from #M17394)
Files
Updated by Stefan Galinski almost 14 years ago
Strange... ExtJS handles the expansion of the node with all subnodes. Sounds like digging again into the library code. :-/
About performance: Sure, but if then you would need to remove the filter feature for huge trees too. The removal of this actions is not that difficult and can be done by some user/group typoscript.
Updated by Rupert Germann almost 14 years ago
hi Stefan,
thanks for diggin' ;-)
hiding the filter can be done with:
options.pageTree.hideFilter
but can you give me a hint how to hide the expand/collapse branch buttons?
the pagetree wikipage doesn't mention them (http://wiki.typo3.org/Pagetree):
options.contextMenu.table.pages.disableItems * [String] Comma-separated list of items that should be disabled from the contextmenu
Updated by Stefan Galinski almost 14 years ago
It's straight forward, because you just need to use the action names configured in the config_default.php. Unfortunatly the documentation list the old context menu action names. Sorry!
options.contextMenu.table.pages.disableItems = expandBranch, collapseBranch
Updated by Ernesto Baschny over 13 years ago
I am not able to reproduce this bug, so its difficult to review. I click on "Expand branch" and it expands all pages in the subtree recursively, which is what I expected. Does it also affect current master or only 4.5?
Updated by Stefan Galinski over 13 years ago
Hi Ernesto,
See my comment @gerrit
This bug is very clear if you look into the code and should be work for 4.5 and master.
Updated by Stefan Galinski over 13 years ago
Reviewed and committed in:
master - https://review.typo3.org/#change,986
4.5 - https://review.typo3.org/#change,1047