[TYPO3-core] RFC: #11407: [Feature] Allow type="user" in user setup
Dan Osipov
dosipov at phillyburbs.com
Wed Oct 21 14:55:59 CEST 2009
Was this documentation added? I can't find it on the wiki page.
Dan Osipov
Calkins Media
http://danosipov.com/blog/
Steffen Kamper wrote:
> 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