thelia / insee-geo-module
Requires
- thelia/installer: ~1.1
README
为法国添加 insee_geo_department, insee_geo_municipality 和 insse_geo_region。提供部门和地区钩子。
安装
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块名称为 INSEEGeo, - 在 Thelia 管理面板中激活它
Composer
将其添加到主 thelia composer.json 文件中
composer require thelia/insee-geo-module:~0.1.2
钩子
{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"}
前端钩子,用于在表单中显示 select-city 表单类型。
循环
有 2 个循环
[insee.geo.departement] : 根据地区提供部门。
输入参数
输出参数
[insee.geo.region] : 根据地区提供地区。
输入参数
输出参数
## 处理器
[insee_geo.handler.insee_geo] : 在后端提供数据。 getCityByZipCode
根据邮编提供城市。
========================== == fr_FR ==
INSEE Geo
为整个法国添加 insee_geo_department, insee_geo_municipality 和 insee_geo_region 表。提供部门和地区钩子(2016年1月1日之前)。
安装
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块名称为 INSEEGeo, - 在 Thelia 管理面板中激活。
Composer
将其添加到 Thelia 的 composer.json 文件中。
composer require thelia/insee-geo-module:~0.1.2
钩子
{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"}
前端钩子,用于在表单中显示 select-city 表单类型。
循环
有 2 个循环
[insee.geo.departement] : 根据地区获取部门。
输入参数
输出参数
[insee.geo.region] : 根据地区获取地区。
输入参数
输出参数
## 处理器
[insee_geo.handler.insee_geo] : 在后端获取数据 getCityByZipCode
根据邮编获取城市。