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 #1

Updated by Mr. Hudson over 13 years ago

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

Actions #3

Updated by Xavier Perseguers over 13 years ago

  • Status changed from New to Under Review
Actions #4

Updated by Mr. Hudson over 13 years ago

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

Actions #5

Updated by Mr. Hudson over 13 years ago

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

Actions #6

Updated by Mr. Hudson over 13 years ago

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

Actions #7

Updated by Xavier Perseguers over 13 years ago

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

Change has been successfully cherry-picked as 533ca8cee409ddc5bb2667d3e980f65ed0a40502.

Actions #9

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Resolved to Closed
Actions #10

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF