Actions
Bug #22361
closedPageRenderer renderJsLibraries should be after the hook
Start date:
2010-03-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you want to manipulate ExtOnReady code or the js libs, the hook is too late.
Easy to solve, move the call $this->renderJsLibraries() behind the hook.
(issue imported from #M13980)
Files
Updated by Steffen Kamper over 14 years ago
Just to show before/after
before in hook:
$parameters['jsLibsCore'] = str_replace('TYPO3.Backend = new TYPO3.Viewport(TYPO3.Viewport.configuration);', 'Ext.apply(TYPO3.Viewport.configuration.items[1], { split: true, collapsable: true, collapseMode: \'mini\', hideCollapseTool: true, animCollapse: false }); TYPO3.Backend = new TYPO3.Viewport(TYPO3.Viewport.configuration);', $parameters['jsLibsCore']);
and after:
$pageRenderer->addExtOnReadyCode(" Ext.apply(TYPO3.Viewport.configuration.items[1], { split: true, collapsable: true, collapseMode: 'mini', hideCollapseTool: true, animCollapse: false }); ", TRUE);
which is definitive the cleaner solution
Updated by Steffen Kamper over 14 years ago
committed to svn,
4_3 rev 7231
trunk rev 7232
Actions