So - nachdem das Projekt irgendwann fertig werden muss habe ich mir mit einer userFunc geholfen in welcher ich das Dropdown erstellen lasse.
Aber ich wäre immer noch dankbar, wenn irgendwer eine Idee hat, warum ich an dieser Stelle die Tabelle static_countries nicht abfragen kann und andere Tabellen wie tt_news ohne Probleme funktionieren???
Falls jemand nochmal vor diesem Problem steht - hier meine suboptimale Lösung:
// Sprache für das Länder-Dropdown setzen
selLang = en
[globalVar = GP:L = 1]
selLang = es
[global]
includeLibs.langDropDown = fileadmin/dropdown.php
temp.info = USER
temp.info {
userFunc = user_langDropDown->main
selName = signup[country]
selClass = select
selId = country
}
plugin.Tx_Formhandler.settings.predef.signup {
debug = 0
markers.dropdown_countries < temp.info
...
ab hier geht der normale Formhandler-Code weiter
Und hier der Inhalt der Datei dropdown.php :
<?
class user_langDropDown {
var $cObj;// The backReference to the mother cObj object set at call time
function main($content,$conf){
require_once(t3lib_extMgm::extPath('static_info_tables').'pi1/class.tx_staticinfotables_pi1.php');
$this->staticInfo = t3lib_div::makeInstance('tx_staticinfotables_pi1');
$this->staticInfo->init();
$countries = $this->staticInfo->buildStaticInfoSelector('COUNTRIES',$conf["selName"],$conf["selClass"],array(),'',0,$conf["selId"],'','',$conf["selLang"]);
return $countries;
}
}
?>
lg
Chris