Tut mir leid ... aber das begreif ich grad nicht :-(
Wenn ich folgendes mache:
PHP-Code:
'city_district' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_immo_expose']['city_district'],
'exclude' => true,
'filter' => true,
'search' => true,
'inputType' => 'select',
'options' => array('umland','innenstadt','lusan'),
'reference' => &$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options'],
'eval' => array('mandatory'=>true,'includeBlankOption'=>true,'tl_class'=>'w50')
)
mit Language-File:
PHP-Code:
&$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options'] = array('außerhalb Gera','Gera Innenstadt','Gera (Lusan)')
gehts nicht, da zeigt er die Indexe aus Options an.
So würde es gehen:
PHP-Code:
&$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options'] = array('umland'=>'außerhalb Gera','innenstadt'=>'Gera Innenstadt','lusan'=>'Gera (Lusan)')
Aber warum dann den Weg über reference, wenn man es gleich so machen könnte:
PHP-Code:
'city_district' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_immo_expose']['city_district'],
'exclude' => true,
'filter' => true,
'search' => true,
'inputType' => 'select',
'options' =>&$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options'],
'eval' => array('mandatory'=>true,'includeBlankOption'=>true,'tl_class'=>'w50')
)
mit Language-File:
PHP-Code:
&$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options'] = array('umland'=>'außerhalb Gera','innenstadt'=>'Gera Innenstadt','lusan'=>'Gera (Lusan)')
Kann ich dann eigentlich im Frontendmodul auf &$GLOBALS['TL_LANG']['tl_immo_expose']['city_district']['options']['...'] zugreifen, damit da nicht der index, sondern der Wert ausgegeben wird!?
Grüße, Andy
Lesezeichen