[TYPO3] no backend module can be started in TYPO3 SVN trunk

Franz Holzinger franz at fholzinger.com
Wed May 16 16:26:47 CEST 2007


Hello Dmitry,

>> - in the alt_main.php HTML source code I have:
>>
>> /**
>> * Wrapper for the actual goToModule function in the menu frame
>> */
>> var currentModuleLoaded = "";
>> function goToModule(modName, cMR_flag, addGetVars)    {    //
>>     currentModuleLoaded = modName;
>>     top.topmenuFrame.goToModule(modName, cMR_flag, addGetVars);
>> }
> 
> Ok, does it exist in the "view source"?
> 
As I have written above it's there. But the JavaScript Debuggers
complain about top.topmenuFrame.goToModule because it does not exist in
the source of alt_topmenu_dummy.php . This codeline has changed by the
last check into SVN.

<!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<?xml version="1.0" encoding="iso-8859-1"?>
5<?xml-stylesheet href="#internalStyle" type="text/css"?>
6
7<html>
8<head>
9 <!-- TYPO3 Script ID: typo3/alt_topmenu_dummy.php -->
10 <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
11 <meta name="generator" content="TYPO3 4.2, http://typo3.com, &#169;
Kasper Sk&#229;rh&#248;j 1998-2006, extensions are copyright of their
respective owners." />
12 <title>Top frame dummy display</title>
13
14 <link rel="stylesheet" type="text/css" href="stylesheet.css" />
15
16 <style type="text/css" id="internalStyle">
17 /*<![CDATA[*/
18
19 /*###POSTCSSMARKER###*/
20 /*]]>*/
21 </style>
22
23 <script src="tab.js" type="text/javascript"></script>
24
25 <!--###POSTJSMARKER###-->
26</head>
27<body onclick="if (top.menuReset) top.menuReset();"
id="typo3-alt-topmenu-dummy-php">
28 <script type="text/javascript">
29 /*<![CDATA[*/
30 if (top.busy && top.busy.loginRefreshed) {
31 top.busy.loginRefreshed();
32 }
33 /*]]>*/
34 </script>
35</body> </html>


typo3/alt_topmenu_dummy.php:
 * $Id: alt_topmenu_dummy.php 2330 2007-05-09 09:30:05Z ingorenner $

tab.js: (does not contain the function goToModule)
 * TYPO3 CVS ID: $Id: tab.js 935 2005-12-26 21:16:59Z mundaun $
And there is is no [CDATA[-wrap around it.

typo3/class.alt_menu_functions.inc:
 * $Id: class.alt_menu_functions.inc 2330 2007-05-09 09:30:05Z ingorenner $
contains:

$collection[$moduleKey] = array(
   'moduleName' => $moduleName,
   'title' => $LANG->moduleLabels['tabs'][$moduleKey],
   'onclick' => 'top.goToModule(\''.$moduleName.'\');',
			);
/**
	* Generates some JavaScript code for the frame.
	*
	* @return	string	goToModule javascript function
	*/
function generateMenuJScode($loadedModules, $menuType = 4)	{
	global $TBE_TEMPLATE;
	
	$goToModuleSwitch = $this->topMenu($loadedModules, 0, '', $menuType);

	$jsCode = '
/**
	* Function used to switch switch module.
	*/
var currentModuleLoaded = "";
function goToModule(modName,cMR_flag,addGetVars)	{	//
	var additionalGetVariables = "";
	if (addGetVars)	additionalGetVariables = addGetVars;

	var cMR = 0;
	if (cMR_flag)	cMR = 1;

	currentModuleLoaded = modName;

	switch(modName)	{'.$goToModuleSwitch.'
	}
}';
	
	return $jsCode;
}

However this function does not appear in the HTML source of it.

 Franz



More information about the TYPO3-english mailing list