Bug #18028

When installing an extension that contains a new backend module the module menu is not refreshed anymore when using backend.php

Added by Ingo Renner over 7 years ago. Updated almost 5 years ago.

Status:Closed Start date:2008-01-20
Priority:Should have Due date:
Assigned To:Ingo Renner % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:4.2 Is Regression:
PHP Version:4.3 Sprint Focus:
Complexity:

Description

When installing an extension that comes with a new backend module the module menu oes not refresh as it was the case with alt_main.php

Actually the class ModuleMenu is already prepared for partial rendering of the menu. The bad thing is that it is still based on an amount of old code. This code dynamically generates javascript code to define what happens when someone clicks a module link.

Now when partially rerendering the menu the javascript is not created for new modules - or at least not printed out which leads to the problem that the browser does not know what to do when clicking a module.

A possible solution could be to route all clicks on a module link through the server which then sends back what should be done - the actions should/may be cached.
(issue imported from #M7222)

reloadMenuOnExtInstall.diff Magnifier (10.7 kB) Administrator Admin, 2008-01-25 00:34

setActive.txt Magnifier (501 Bytes) Administrator Admin, 2008-01-25 01:31


Related issues

related to Core - Feature #17678: Change the frames BE to iframes Closed 2007-10-14
related to Core - Bug #17692: Javascript Error in new Backend Closed 2008-01-22
related to Core - Bug #42009: Enable extenisions with BE modules don't refresh the modu... Resolved 2012-10-15

History

#1 Updated by Steffen Kamper over 7 years ago

very nice!

i attached a snippet to set the active state of menu item, you can include.

vg Steffen

#2 Updated by Ingo Renner over 7 years ago

this would belong to #18027 then. nevertheless this would not be enough as highlighting of a module can also change by calling a shortcut and jumping into a different module. We need to rebuild the old highlightModuleMenuItem() function.

#3 Updated by Ingo Renner over 7 years ago

patch is ready, will commit as soon as SF.net is back

#4 Updated by Ingo Renner over 7 years ago

committed to SVN trunk

Also available in: Atom PDF