slè / 简单地址
此扩展提供了一种简单的方法来显示带有或没有谷歌地图的地址块。地址将以vCard格式显示。
v2.1.0
2017-12-07 15:38 UTC
Requires
- typo3/cms-core: ^8.7.1
This package is auto-updated.
Last update: 2024-09-14 19:31:30 UTC
README
目录
内容
它做什么?
此扩展提供了一个简单的方法来显示带有或没有谷歌地图的地址块及其上的地址位置。地址将以vCard格式显示,并且整个模板是完全响应式的,因为它基于Twitter Bootstrap。
支持的语言
- 英语
- 德语
依赖关系
- 参见 composer.json
安装
-
使用 composer 安装扩展
$ composer require sle/simpleaddress -
将 TypoScript 模板添加到您的网站根模板
-
包含 JavaScript
(function(win, $) { $.getScript('https://maps.googleapis.com/maps/api/js?v=3.exp&key=YOUR-API-KEY') .done(function() { win.SleSimpleaddress.initialize(); }); })(window, jQuery);page.includeJSFooter.file999 = EXT:simpleaddress/Resources/Public/js/simpleaddress.js
配置
-
您可以在
Templates\Address\Show.html中通过添加以下属性来更改默认地图标记图标:data-map-marker-icon="{f:uri.resource(extensionName: 'my_ext_key', path: 'Icons/my_marker_icon.png', absolute: 1)}"到
<div id="google-map-{cObjectData.uid}" class="ext-simpleaddess-map" data-config="{mapConfig}" data-map-marker-icon="{f:uri.resource(extensionName: 'my_ext_key', path: 'Icons/my_marker_icon.png', absolute: 1)}" style="height:400px;"></div>
插件
地址
- 显示带有或没有谷歌地图的地址块
已知问题
无
待办事项
请随意添加问题、拉取请求或请求缺少的功能。