Kannst ja mal probieren (ungetestet):
PHP-Code:
'author' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['author'],
'default' => FrontendUser::getInstance()->id,
'exclude' => true,
'search' => true,
'filter' => true,
'sorting' => true,
'flag' => 11,
'inputType' => 'select',
'foreignKey' => 'tl_member.name',
'eval' => array('doNotCopy'=>true, 'chosen'=>true, 'mandatory'=>true, 'includeBlankOption'=>true, 'tl_class'=>'w50'),
'sql' => "int(10) unsigned NOT NULL default '0'",
'relation' => array('type'=>'hasOne', 'load'=>'eager')
),
Lesezeichen