thelia/insee-geo-module

Installs: 341

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 11

Forks: 3

Open Issues: 1

Type:thelia-module

v0.2.1 2016-08-04 11:50 UTC

This package is auto-updated.

Last update: 2024-09-14 21:44:36 UTC


README

Add insee_geo_department, insee_geo_municipality and insse_geo_region for France. Give departments and region hook.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is INSEEGeo,
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/insee-geo-module:~0.1.2

Hook

{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"} Front Office Hook to show select-city form type in your form.

Loop

There are 2 loops :

[insee.geo.departement] : to give department, according to locale.

Input arguments

Output arguments

[insee.geo.region] : to give region, according to locale.

Input arguments

Output arguments

## Handler

[insee_geo.handler.insee_geo] : To give data in BackEnd. getCityByZipCode to give city by zip code.

========================== == fr_FR ==

INSEE Geo

Ajoute les tables insee_geo_department, insee_geo_municipality et insee_geo_region pour la toute la France. Fournit des hook sur les départements et les régions (avant 1er janvier 2016).

Installation

Manually

  • Copier le module dans le dossier <thelia_root>/local/modules/ et s'assurer que le nom du module est INSEEGeo,
  • Activer le dans le pannal d'administratiion de Thelia.

Composer

Ajouter le dans le fichier composer.json de Thelia

composer require thelia/insee-geo-module:~0.1.2

Hook

{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"} Hook niveau Front Office pour l'affiche du form type select-city dans votre formulaire

Loop

Il y a 2 loops :

[insee.geo.departement] : pour récupérer les départements, suivant la locale.

Input arguments

Output arguments

[insee.geo.region] : pour récupérer les régions, suivant la locale.

Input arguments

Output arguments

## Handler

[insee_geo.handler.insee_geo] : Pour récupérer les données niveau BackEnd getCityByZipCode pour récupérer le ville à partir du code postal.