菜单

New Content Element Wizard didn’t load

2010年04月8日 - typo3

– Markup in "crash" and in "normal" doesn’t differ
– It’s not related to Firefox extensions since I could also reproduce it in Firefox’ secure mode without extensions
– It’s not related to the "tabs" feature since it has already be seen with the regular "list"
– it’s not really related to the browser cache since I was able to see it with and without cache
– it’s not related to the wrong XML prolog position in TYPO3 4.2

解决方法:

typo3conf\ext\templavoila\mod1\db_new_content_el.php
Index: mod1/db_new_content_el.php
===================================================================
— mod1/db_new_content_el.php    (revision 30848)
+++ mod1/db_new_content_el.php    (working copy)
@@ -128,6 +128,15 @@
         $this->doc->docType= ‘xhtml_trans’;
         $this->doc->backPath = $BACK_PATH;
         $this->doc->JScode=”;
+
+        if (t3lib_div::compat_version(‘4.3’)) {
+            $pageRenderer = $this->doc->getPageRenderer()->loadPrototype();
+        } elseif (t3lib_div::compat_version(‘4.1’)) {
+            $this->doc->loadJavascriptLib(‘contrib/prototype/prototype.js’);
+        } else {
+            $this->doc->JScodeArray[‘prototypeJS’] = ‘<script type="text/javascript" src="’ . $this->doc->backPath . ‘contrib/prototype/prototype.js"></script>’;
+        }
+
         $this->doc->JScodeLibArray[‘dyntabmenu’] = $this->doc->getDynTabMenuJScode();
         $this->doc->form='<form action="" name="editForm">’;
 
@@ -204,21 +213,23 @@
                 $this->elementWrapper = $this->elementWrapperForTabs;
             }
 
–            // add document inline javascript
+                // add document inline javascript
             $this->doc->JScode = $this->doc->wrapScriptTags(‘
                 function goToalt_doc()    {    //
                     ‘ . $this->onClickEvent . ‘
                 }
 
–                if(top.refreshMenu) {
–                    top.refreshMenu();
–                } else {
–                    top.TYPO3ModuleMenu.refreshMenu();
–                }
+                Event.observe(window, \’load\’, function() {
+                    if(top.refreshMenu) {
+                        top.refreshMenu();
+                    } else {
+                        top.TYPO3ModuleMenu.refreshMenu();
+                    }
 
–                if(top.shortcutFrame) {
–                    top.shortcutFrame.refreshShortcuts();
–                }
+                    if(top.shortcutFrame) {
+                        top.shortcutFrame.refreshShortcuts();
+                    }
+                });
             ‘);
 
                 // Traverse items for the wizard.
 

New Content Element Wizard didn’t load》有1个想法

9music

You are so cool! I do not think I’ve read through a single thing like that before. So wonderful to discover somebody with genuine thoughts on this issue. Really.. thank you for starting this up. This website is one thing that is needed on the web, someone with a little originality!

回复

9music进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注