2017 © Pedro Peláez
 

typo3-cms-extension formengine-map

Embed a map search into your TCA forms

image

cedricziel/formengine-map

Embed a map search into your TCA forms

  • Saturday, April 29, 2017
  • by cedricziel
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,293 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 113 % Grown

The README.md

TYPO3 CMS Formengine Map Node

A simplistic integration for Google Maps on any TCA text field., (*1)

It allows you to either leverage Google Static Maps for a very privacy protected API Access or Google Maps to search places with a rich interface., (*2)

Installation

composer require cedricziel/formengine-map

Configuration

You need a Google Maps API key activated with the following APIs:, (*3)

This key needs to be configured in the ExtensionManager., (*4)

The default configuration attaches a field of type text with renderType=cz_map to the tt_content TCA table., (*5)

'tx_formenginemap_address' => [
    'exclude' => 0,
    'label'   => 'Map',
    'config'  => [
        'type'       => 'text',
        'renderType' => 'cz_map',
        'cols'       => 40,
        'rows'       => 15,
        'eval'       => 'trim',
        'size'       => 50,
        'default'    => '',
    ],
],

Google Static Maps Embedded view:, (*6)

, (*7)

Google Static Maps Embedded view:, (*8)

, (*9)

ExtensionManager Configuration view:, (*10)

, (*11)

Usage on other tables / colums

Just define a text column with a renderType of cz_map., (*12)

You can then use the included DataProcessor to transport the value to your view., (*13)

ViewLayer

As the column is filled with a JSON blob, you need to deserialize it, before passing it to the view. You can do so (preferably) in a DataProcessor, or use a ViewHelper to deserialize it in the view.., (*14)

The extension ships a DataProcessor that attaches to lib.fluidContent, when the static template is included., (*15)

You can use the following snippet to attach it to any other element:, (*16)

tt_content.my_ctype {
    dataProcessing {
        197 = CedricZiel\FormEngine\Map\DataProcessing\FormEngineMapProcessor
        197 {
            as = map
            field = tx_formenginemap_address
        }
    }
}

This will process the given tx_formenginemap_address field on the given row so that you can use the map variable in your fluid templates., (*17)

License

GPLv2+, (*18)

The Versions

29/04 2017

dev-master

9999999-dev https://typo3.org/

Embed a map search into your TCA forms

  Sources   Download

GPL-2.0+

The Requires

 

by Cedric Ziel

typo3 google maps tca formengine

25/01 2017

dev-travis

dev-travis https://typo3.org/

Embed a map search into your TCA forms

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Cedric Ziel

typo3 google maps tca formengine

23/01 2017

v0.2.2

0.2.2.0 https://typo3.org/

Embed a map search into your TCA forms

  Sources   Download

GPL-2.0+

The Requires

 

by Cedric Ziel

typo3 google maps tca formengine

22/01 2017

v0.2.1

0.2.1.0 https://typo3.org/

Embed a map search into your TCA forms

  Sources   Download

GPL-2.0+

The Requires

 

by Cedric Ziel

typo3 google maps tca formengine

22/01 2017

v0.2.0

0.2.0.0

Embed a map search into your TCA forms

  Sources   Download

GPLv2+

by Cedric Ziel

22/01 2017

v0.1.0

0.1.0.0

  Sources   Download

GPLv2+

by Cedric Ziel