Closed zonky2 closed 2 years ago
I`ll get out two fields of tl_member country and own field lable from select type - both output is only the key
country: {{dca_value::tl_member::country::de}}
{{dca_value::tl_member::country::de}}
if I debug at https://github.com/codefog/contao-haste/blob/master/library/Haste/Util/Format.php#L138 and get the $arrField:
array:9 [▼ "label" => & array:2 [▼ 0 => "Land" 1 => "Bitte wählen Sie ein Land." ] "exclude" => true "filter" => true "sorting" => true "inputType" => "select" "eval" => array:6 [▶] "options_callback" => Closure {#1427 ▶} "sql" => "varchar(2) NOT NULL default ''" "name" => "country" ]
own field
$GLOBALS['TL_DCA']['tl_member']['fields']['legal_form'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_member']['legal_form'], 'exclude' => true, 'inputType' => 'select', 'options' => array('ek', 'gmbhco', 'gmbh', 'gbr', 'ag', 'ohg', 'ug', 'kg', 'gmbhco', 'ev', 'other'), 'reference' => &$GLOBALS['TL_LANG']['tl_member']['legal_form']['forms'], 'eval' => array('includeBlankOption'=>true, 'feEditable'=>true, 'feViewable'=>true, 'feGroup'=>'personal', 'tl_class'=>'w50'), 'sql' => "varchar(32) NOT NULL default ''" );
and {{dca_value::tl_member::legal_form::gmbh}}
{{dca_value::tl_member::legal_form::gmbh}}
array:8 [▼ "label" => & array:3 [▼ 0 => "Rechtsform der Betreibergesellschaft" 1 => "" "forms" => array:10 [▶] ] "exclude" => true "inputType" => "select" "options" => array:11 [▶] "reference" => null "eval" => array:5 [▶] "sql" => "varchar(32) NOT NULL default ''" "name" => "legal_form" ]
I`ll get out two fields of tl_member country and own field lable from select type - both output is only the key
country:
{{dca_value::tl_member::country::de}}
if I debug at https://github.com/codefog/contao-haste/blob/master/library/Haste/Util/Format.php#L138 and get the $arrField:
own field
and
{{dca_value::tl_member::legal_form::gmbh}}