[TYPO3-core] RFC #15770: Module menu and content area are empty after upgrade to 4.5.0alpha2

Søren Malling soren.malling at gmail.com
Thu Sep 23 09:25:59 CEST 2010


Hi,

Being unaware of the new vote system (and how much non-core developer
votes count) I can give

+1 by testing

Regards,

Søren Malling

Twitter: twitter.com/sorenmalling



On Thu, Sep 23, 2010 at 9:19 AM, Ernesto Baschny <ernesto at typo3.org> wrote:
> Hi,
>
> This is a SVN patch request.
>
> Type: Bugfix
>
> BT reference: http://bugs.typo3.org/view.php?id=15770
>
> Branches: trunk
>
> Problem:
> With the new viewpanel the backend is empty. No modules to click on.
> This message in the debug console: "help_aboutmodules was not found in
> modules".
>
> It comes from installed extensions that register only a top level
> module, e.g. llxmltranslate.
>
> Solution:
> Attached patch creates a workaround in the module generation for this
> kind of extensions. It will create a dummy top level module and a
> sub-module with the real content, so that it is consistent with all
> other modules.
>
> How to test:
> 1) Install llxmltranslate and see the backend empty.
> 2) Apply the patch and reload the backend.
>
> Cheers,
> Ernesto
>
>
> Index: typo3/classes/class.modulemenu.php
> ===================================================================
> --- typo3/classes/class.modulemenu.php  (Revision 8862)
> +++ typo3/classes/class.modulemenu.php  (Arbeitskopie)
> @@ -207,8 +207,20 @@
>                                'description' => $GLOBALS['LANG']->moduleLabels['labels'][$moduleKey.'label']
>                        );
>
> -                       if(is_array($moduleData['sub'])) {
> -
> +                       if (!is_array($moduleData['sub'])) {
> +                                       // Work around for modules with own main entry, but being self the only submodule
> +                               $modules[$moduleKey]['subitems'][$moduleKey] = array(
> +                                       'name' => $moduleName,
> +                                       'title' => $GLOBALS['LANG']->moduleLabels['tabs'][$moduleName . '_tab'],
> +                                       'onclick' => 'top.goToModule(\'' . $moduleName . '\');',
> +                                       'icon' => $this->getModuleIcon($moduleName . '_tab'),
> +                                       'link' => $moduleLink,
> +                                       'originalLink' => $moduleLink,
> +                                       'description' => $GLOBALS['LANG']->moduleLabels['labels'][$moduleKey . 'label'],
> +                                       'navigationFrameScript' => NULL,
> +                                       'navigationFrameScriptParam' => NULL,
> +                               );
> +                       } else {
>                                foreach($moduleData['sub'] as $submoduleName => $submoduleData) {
>                                        $submoduleLink = t3lib_div::resolveBackPath($submoduleData['script']);
>
>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core
>


More information about the TYPO3-team-core mailing list