madj2k / t3-gadgeto-google
Extension with Utilites and ViewHelper for accession Google API and Google Maps
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: >=7.4
- typo3/cms-core: ~10.4.0 || ~11.5.0 || ~12.4.0
This package is auto-updated.
Last update: 2024-11-07 10:04:16 UTC
README
Provides Utilities and ViewHelpers for Google Geolocation API and Google Maps
Features
- Gets geolocation data from Google Geolocation API when a location record is saved in the backend
- Displays a Google Map of all location records with category filters
- Consent overlay for Google Map (GDPR)
Installation
Just install the extension and include the TypoScript. At the moment there is nothing to configure.
Usage in your own extension
General
- Your location-model has either to
- implement the FilterableInterface and use the FilterableTrait OR
- extend the Location-model.
- If you use the FilterableTrait, make sure you add the corresponsing TCA-definitions and database-fields (see: ext_tables.sql and TCA/tx_gadgetogoogle_domain_model_location.php)
Load geodata from API when location record is stored
- First you need to register a hook to DataHandler in your ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['example'] =
\My\Example\Hooks\TceMainHooks::class;
- Then you can call the Geolocation-Service in your hook. See Classes/Hooks/TceMainHooks.php for an example