定制 nthmedia/entry-gps-coordinates 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nthmedia/entry-gps-coordinates

最新稳定版本:2.3.0

Composer 安装命令:

composer require nthmedia/entry-gps-coordinates

包简介

Entry GPS Coordinates plugin for Craft CMS 3.x

README 文档

README

Pick a GPS location for an entry

PluginImpression

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project and tell composer to install the plugin composer require nthmedia/entry-gps-coordinates

  2. Activate the plugin in Craft through the command line or through the Control Panel under Settings → Plugins ./craft install/plugin entry-gps-coordinates

  3. Add a Coordinates field under Settings → Fields and add this field to a Section under Settings → Sections

Usage in Twig

{{ entry.fieldName | searchQuery }} => Van Gogh Museum
{{ entry.fieldName | coordinates }} => 52.3584159,4.8810756
{{ entry.fieldName | latitude }} => 52.3584159
{{ entry.fieldName | longitude }} => 4.8810756
{{ entry.fieldName | zoomLevel }} => 13
{{ entry.fieldName | address }} => Paulus Potterstraat 7, 1071 CX Amsterdam, Netherlands

统计信息

  • 总下载量: 5.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2019-08-31