Issue Feature Closed

#28314TCA: Allow parameters to be specified for userFunc

Xavier Perseguers 07/19/11, 14:02 updated 06/01/13, 14:45

Description

Example of a Google Map user-defined field in TCA:

'map' => array(
    'label' => 'Google Map',
    'config' => array(
        'type' => 'user',
        'userFunc' => 'Tx_MyExt_Tca_Map->render',
        'parameters' => array(
            'latitude' => 'gps_latitude',
            'longitude' => 'gps_longitude',
        ),
    ),
),

This allows use of “parameters” to provide additional information to the userFunc (here providing the fields used to store latitude/longitude to allow the userFunc to provide a Google Map that dynamically update the coordinates when moving a marker on the map)

Reviews 2