Feature #28314

TCA: Allow parameters to be specified for userFunc

Added by Xavier Perseguers almost 2 years ago. Updated about 1 year ago.

Status:Closed Start date:2011-07-19
Priority:Should have Due date:
Assignee:Xavier Perseguers % Done:

100%

Category:-
Target version:4.6.0-beta1
TYPO3 Version:4.6 Complexity:easy
PHP Version:
Votes: 0

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)

Associated revisions

Revision 533ca8ce
Added by Xavier Perseguers almost 2 years ago

[FEATURE] TCA: Allow parameters to be specified for userFunc

Add support for user-supplied parameters when using a userFunc
within a TCA field.

Change-Id: Ic808c7bc067f232d881631b790e41112fe53c44c
Resolves: #28314
Reviewed-on: http://review.typo3.org/3432
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Dominique Feyer
Tested-by: Dominique Feyer
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

History

Updated by Mr. Hudson almost 2 years ago

Patch set 1 of change I9c490d26330dcdfdac375b59793d67b7597b49d4 has been pushed to the review server.
It is available at http://review.typo3.org/3414

Updated by Xavier Perseguers almost 2 years ago

  • Status changed from New to Under Review

Updated by Mr. Hudson almost 2 years ago

Patch set 2 of change I9c490d26330dcdfdac375b59793d67b7597b49d4 has been pushed to the review server.
It is available at http://review.typo3.org/3414

Updated by Mr. Hudson almost 2 years ago

Patch set 3 of change I9c490d26330dcdfdac375b59793d67b7597b49d4 has been pushed to the review server.
It is available at http://review.typo3.org/3414

Updated by Mr. Hudson almost 2 years ago

Patch set 1 of change Ic808c7bc067f232d881631b790e41112fe53c44c has been pushed to the review server.
It is available at http://review.typo3.org/3432

Updated by Xavier Perseguers almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Change has been successfully cherry-picked as 533ca8cee409ddc5bb2667d3e980f65ed0a40502.

Updated by Xavier Perseguers about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF