Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Quiet

94753[FEATURE] New TCA type "coordinate"

Georg Ringer CR 0 V 0 Nightmare +5081 −9 updated 10/27/26, 00:52

Commit message

The TCA type "coordinate" stores a latitude/longitude pair as a JSON
payload in a single column and exposes it as an immutable value object
TYPO3\CMS\Core\Coordinate\Coordinate. It mirrors the "country" TCA type
as a boilerplate for custom TCA types.

Coordinate providers offer further ways to fill the field. They are
enabled per field via the TCA option "providers" and rendered as
buttons next to the inputs, their JavaScript is loaded on first use.
TYPO3 ships the providers "geolocation" (default) and "openStreetMap"
(Leaflet map with address search). The provider API is internal for
now. EXT:coordinate_demo of the e2e test setup shows custom providers:
a static JSON list, basemap.at tiles reusing the Leaflet module and
Google Maps with its own library, available with an API key only.

This feature implements:

* Coordinate value object (readonly, range-validated,
  JSON-serializable) with a lenient Coordinate::tryFrom() factory
* FormEngine element with two number inputs
* "typo3-formengine-element-coordinate" web component managing the
  provider lifecycle via a CoordinateProviderHost
* CoordinateProviderInterface, context, result and registry
* FormEngine FormData provider (TcaCoordinate)
* DataHandler value normalisation
* DBAL TableColumnType mapping and JSON column schema
* TCA Schema integration (CoordinateFieldType)
* FlexForm integration
* RecordFieldTransformer enrichment
* Extbase TypeConverter, DataMapper and ColumnMapFactory integration
* Leaflet 1.9.4 (BSD-2-Clause) bundled for the map provider
* EXT:styleguide examples, generator and frontend plugin
* EXT:lowlevel query search integration
* Feature ReST documentation
* Functional and unit tests

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 10
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/53/94753/10 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/53/94753/10 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 92

Show 72 more files

Review log 1719

  1. Georg Ringer uploaded patch set 1 07/10/26, 13:15

  2. Georg Ringer uploaded patch set 2 10/01/26, 20:39

  3. Georg Ringer commented on patch set 2 10/01/26, 20:44

    This change is ready for review.
  4. Garvin Hicking commented on patch set 2 10/02/26, 05:26

    Feature-00000-NewTCATypeCoordinate.rst:81

    Dont know if its technically feasible, but wouldn't it be cool to make the provider emit the csp rules by itself? When rendering it could dynamically apy the csp rule needed?
  5. Georg Ringer uploaded patch set 3 10/02/26, 06:46

  6. Garvin Hicking uploaded patch set 4 10/20/26, 13:19

    Replace LLL EXT with language domains
  7. Garvin Hicking uploaded patch set 5 10/20/26, 13:27

    add styleguide frontend extbase demo plugin
  8. Garvin Hicking uploaded patch set 6 10/20/26, 13:29

    More tests some failing
  9. Garvin Hicking uploaded patch set 7 10/20/26, 13:30

    More tests hopefully succeeding
  10. Garvin Hicking uploaded patch set 8 10/20/26, 13:45

    Flexform integration
  11. Garvin Hicking commented on patch set 8 CR +1 V +1 10/20/26, 13:48

    lgtm

    Feature-00000-NewTCATypeCoordinate.rst:81 Reply

    Done
  12. Georg Ringer marked it ready for review 10/20/26, 13:54

  13. Georg Ringer wrote 10/20/26, 14:00

    Unset private
  14. Georg Ringer marked it work in progress 10/20/26, 14:00

  15. Garvin Hicking rebased onto patch set 9 CR +1 V +1 10/20/26, 14:27

  16. core-ci voted on patch set 9 V -1 10/20/26, 15:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111848

  17. Garvin Hicking uploaded patch set 10 V -1 10/20/26, 16:50

    us JSONB for pgsql compat on distinct equality
  18. core-ci voted on patch set 10 V +1 10/20/26, 17:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111896

  19. Simon Schaufelberger commented on patch set 10 10/27/26, 00:52

    Unresolved

    Pure code style feedback for now. Will review later in detail as I'm a heavy user of leaflet in the backend

    leaflet.ts:188 Unresolved

    2 empty lines

    coordinate-element.ts:204 Unresolved

    Remove empty line