Project

General

Profile

Actions

Feature #28314

closed

TCA: Allow parameters to be specified for userFunc

Added by Xavier Perseguers over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-07-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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)

Actions

Also available in: Atom PDF