All Projects → rutger1140 → Kirby Geolocation Field

rutger1140 / Kirby Geolocation Field

Licence: gpl-3.0
Geolocation panel field for Kirby 2

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Kirby Geolocation Field

anotherkit
Another project template for Kirby
Stars: ✭ 13 (-75%)
Mutual labels:  kirby
kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (+59.62%)
Mutual labels:  kirby
Kirby Sri
Subresource integrity hashing & cache-busting static assets for Kirby
Stars: ✭ 9 (-82.69%)
Mutual labels:  kirby
vuekit
Kirby 3 + Vue.js kit
Stars: ✭ 16 (-69.23%)
Mutual labels:  kirby
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (-61.54%)
Mutual labels:  kirby
kirby-copy-files
Clone page dashboard widget for Kirby panel
Stars: ✭ 12 (-76.92%)
Mutual labels:  kirby
queue-for-kirby
Basic queue for Kirby 2, using Cron and Kirby's flat file system
Stars: ✭ 17 (-67.31%)
Mutual labels:  kirby
Select A Structure
A select field for Kirby populated by a structure field.
Stars: ✭ 44 (-15.38%)
Mutual labels:  kirby
search-for-kirby
Kirby 3 plugin for adding a search index (sqlite or Algolia).
Stars: ✭ 42 (-19.23%)
Mutual labels:  kirby
Kirby Pay
Make online payments with Kirby
Stars: ✭ 27 (-48.08%)
Mutual labels:  kirby
Cartkit
Cartkit - The [quick] starter kit!
Stars: ✭ 39 (-25%)
Mutual labels:  kirby
soba
Kirby starter theme that uses Twig, PostCSS, and Browsersync
Stars: ✭ 16 (-69.23%)
Mutual labels:  kirby
Kirby
Kirby's core application folder
Stars: ✭ 436 (+738.46%)
Mutual labels:  kirby
kirby-architect
📐 Easily reference Blueprint data from anywhere in your Kirby application.
Stars: ✭ 38 (-26.92%)
Mutual labels:  kirby
Kirby Template Sitemap
DEPRECATED: Sitemap-Templates with option to exclude pages by template e.g. for one-pagers
Stars: ✭ 9 (-82.69%)
Mutual labels:  kirby
retour-for-kirby
Kirby 3 plugin to manage redirects and track 404s right from the Panel
Stars: ✭ 96 (+84.62%)
Mutual labels:  kirby
kirby-imageradio
Add illustrations to Kirby's radio buttons. Kirby 2 and 3.
Stars: ✭ 49 (-5.77%)
Mutual labels:  kirby
Kirby Color Palette
A color palette to pick colors from in the panel. Kirby 3 only.
Stars: ✭ 47 (-9.62%)
Mutual labels:  kirby
Kirby Autofocus
Content aware image cropping for Kirby. Kirby 2 and 3.
Stars: ✭ 35 (-32.69%)
Mutual labels:  kirby
Bentobox
A simple theme to organize links using the Kirby CMS
Stars: ✭ 24 (-53.85%)
Mutual labels:  kirby

Geolocation for Kirby 2

This is a custom field for Kirby that adds a Google Map with draggable marker. Marker position is saved to input field. GeoCoder is used to search for address entries.

Installation

Download the files and put them in a folder named geolocation, inside the /site/fields folder. If the fields folder doesn't exist, create it.

To install the field as a submodule, you can use the following command:

git submodule add https://github.com/lekkerduidelijk/kirby-geolocation-field.git site/fields/geolocation

How to use it

In your blueprint add the following field:

fields:
  location:
    label: Location
    type: geolocation

In your config file, you need to set your Google Maps API key with the geolocation-key config variable. Google recently changed it's policy regarding Google Map implementations and it won't work without it. (See issue #9)

// Obtain key from https://developers.google.com/maps/documentation/javascript/get-api-key
c::set('geolocation-key', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

In your template you can use the field like:

<?php echo $page->location(); ?>

Troubleshooting

1. The map doesn't show in the panel

  • Make sure to use 'location' as fieldname in your blueprint or change the selector in geolocation.js accordingly. (See issue #2)

  • Make sure to refresh the panel after changing your blueprint. (See issue #3)

2. The latitude and longtitude show as one string in my template

Due to limitations in the Kirby core you need to split the string yourself in the template. (See issue #1)

3. Your plugin doesn't work with plugin x and y

The plugin should work with the most recent version of Kirby. If you've found a bug with the plugin please create a new issue. I can't guarantee the plugin works with other Kirby plugins. If you run into issues try to reach out to the other plugin creator as well. Maybe we can work something out.

4. Can you add feature x?

In short: no. The plugin is provided as is. Please feel free to fork or create a pull request with your changes.

Example

Example of Geolocation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].