[TYPO3-core] RFC: #11407: [Feature] Allow type="user" in user setup
Steffen Kamper
info at sk-typo3.de
Wed Aug 19 10:53:06 CEST 2009
Hi,
here is the documentation:
property: type
data type: string
description: defines the type of the input field
allowed: text, password, check, select, user
A field with type=user also need a userFunc defined.
Example:
'fieldname' => array(
'type' => 'user',
'label' => 'the label',
'userFunc' => 'classname->theRenderFunction',
)
The class file has to be loaded before. The function is called with 2
parameters and expect the HTML for the field. Use data[nameofyourfield]
as name to have your field value saved in the BE_USER->uc
/**
/* Renders the user field in user settings
/* @param array $params contains the configuration of the field
/* @param SC_mod_user_setup_index $ref holds the reference of
SC_mod_user_setup_index
/* @return string Returns the HTML of the field
public function theRenderFunction($params, $ref) {...}
vg Steffen
More information about the TYPO3-team-core
mailing list