Hallo,
Ich benötige bei Flexform Feld meiner Extension ein Feld vom Typ user. In diesem ermittle ich alle types des TCA einer tabelle und gebe diese in einem select aus. Die Konfiguration an der Stelle ist (für das Label) geschieht mit LLL:EXT....
Nun bekomme ich aber in meiner Option den String LLL:EXT... angezeigt, wie kann ich aus dem String die Referenz aus der locallang auslesen? Also welcher Klasse/Methode kann ich diesen String übrgeben um die Einstellung für meine aktuelle Sprache zu bekommen?
Das ganze sieht btw so aus:
/** * Render a select box with all types of regional objects * this is used in plugins to controll what records a list will display * * @return string a select box with all types as options */ public function renderTypesSelectBox ($config) { $types = $GLOBALS['TCA']['tx_regionalobject_domain_model_regionalobject']['columns']['type']['config']['items']; $options = ''; foreach ($types as $type) { if ($type[1] == '--div--') continue; $options .= '<option value="'.$type[1].'">'.$type[0].'</option>'; } return '<select name="types" size="1">'.$options.'</select>'; }

