Open AntonMezger opened 6 years ago
All my xml files work correctly with mkforms, however an xml file with a searchform refuses to render and tells me "Leider ist ein Fehler aufgetreten). The xml file was developed with formidable and probably something has to be changed I guess.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <formidable version="2.0.477" xmlns:renderlet="http://formidable.typo3.ug/xmlns/2.0.477/renderlet">
<meta> <name>searchform</name> <form formid="searchform" /> <debug>false</debug> <codebehind name="cb" path="fileadmin/xml/cb/class.exportxls.php" /> <codebehind name="cb1" path="fileadmin/xml/cb/class.userfunctions.php" /> </meta> <control> <datasource:DB name="mytable"> <sql> <userobj> <php><![CDATA[ $superuser="Superuser"; if(in_array($superuser, $GLOBALS['TSFE']->fe_user->groupData['title'])){ return 'SELECT * FROM mytable'; } else { return 'SELECT * FROM mytable WHERE association = ' ."'" . $GLOBALS["TSFE"]->fe_user->user["username"] ."'"; } ]]></php> </userobj> </sql> </datasource:DB> </control> <elements> <renderlet:BOX name="mybrand" mode="h2"> <html> <userobj> <php><![CDATA[
// en=0 de=2 fr=3 it=5 switch ($GLOBALS['TSFE']->sys_language_uid) { case 0: $html = "Actual user: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 2: $html = "Aktueller Benutzer: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 3: $html = "Utilisateur actuel: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 5: $html = "Utente corrente: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; } return $html; ]]>
All my xml files work correctly with mkforms, however an xml file with a searchform refuses to render and tells me "Leider ist ein Fehler aufgetreten). The xml file was developed with formidable and probably something has to be changed I guess.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <formidable version="2.0.477" xmlns:renderlet="http://formidable.typo3.ug/xmlns/2.0.477/renderlet">
// en=0 de=2 fr=3 it=5 switch ($GLOBALS['TSFE']->sys_language_uid) { case 0: $html = "Actual user: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 2: $html = "Aktueller Benutzer: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 3: $html = "Utilisateur actuel: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; case 5: $html = "Utente corrente: " . $GLOBALS["TSFE"]->fe_user->user["username"]; break; } return $html; ]]>