Hi all,
I'm adding to tl_module to give the option for user login types via the DCA with the following:
option_logintypes() is fine, this gets the possible login types from the configuration file.Code:$GLOBALS['TL_DCA']['tl_module']['fields']['logintypes'] = array( 'label' => &$GLOBALS['TL_DCA']['tl_module']['logintypes'], 'inputType' => 'checkbox', 'options_callback' => array('ef_member_login','options_logintypes'), 'eval' => array('multiple'=>true,'submitOnChange'=>true) ); $GLOBALS['TL_DCA']['tl_module']['fields']['logintype_default'] = array( 'label' => &$GLOBALS['TL_DCA']['tl_module']['logintype_default'], 'inputType' => 'select', 'options_callback' => array('ef_member_login','options_logintype_default') ); $GLOBALS['TL_DCA']['tl_module']['palettes']['ef_member_login']='name,type,headline;cols,jumpTo;guests,protected;align,space,cssID;logintypes,logintype_default'; class ef_member_login extends ef_backend{ function options_logintypes(){ return $GLOBALS['eFLUX']['login']['username_fields']; } function options_logintype_default(){ return array('some options please'); } }
What I want to do now is within options_logintype_default is to pick from the Model the options selected in logintypes.
Possible?
Cheers

 
			
 
			
			 [SOLVED] Getting access to other fields in options_callback
 [SOLVED] Getting access to other fields in options_callback
				 
					
					
					
						 Reply With Quote
Reply With Quote
Bookmarks