github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

sixapart / mt-plugin-GeoType

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 21
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (1)
  • Downloads (25)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • infowindow
    • integration
    • master ✓
    • mt3
  • Switch Tags (25)
    • 1.01
    • 1.9.5
    • 1.9.4
    • 1.9.3
    • 1.9.2
    • 1.9.1
    • 1.9
    • 1.6.8.3nolp
    • 1.6.8.3
    • 1.6.8.2nolp
    • 1.6.8.2
    • 1.6.8.1nolp
    • 1.6.8.1
    • 1.6.8
    • 1.6.7
    • 1.6.5
    • 1.6.4
    • 1.6.3
    • 1.6.2
    • 1.6.1
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
  • Branch List
Sending Request…

GeoType is a plugin for Movable Type that uses the Google Maps API to tie geographic coordinates to an MT object. — Read more

  Cancel

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Reverting a code change on line 253 of CMS.pm that was inadvertently made. 
daveaiello (author)
Wed Aug 18 19:10:01 -0700 2010
commit  d09c31944e25cbb43448
tree    5517e1fd543d507de8f7
parent  4aa79a3854e0875daed8
mt-plugin-GeoType /
name age
history
message
file LICENSE.txt Tue Mar 09 14:35:46 -0800 2010 Retab LICENSE.txt. [finn]
file README.md Thu Mar 11 15:15:56 -0800 2010 Edited README. [finn]
file SUPPORT.txt Tue Mar 09 14:28:49 -0800 2010 Add SUPPORT.txt. [finn]
directory mt-static/ Mon Mar 08 09:11:03 -0800 2010 Remove trailing spaces. [finn]
directory plugins/ Wed Aug 18 19:10:01 -0700 2010 Reverting a code change on line 253 of CMS.pm t... [daveaiello]
README.md

GeoType Plugin

About

GeoType is a plugin for Movable Type that uses the Google Maps API to tie geographic coordinates to an MT object.

Platform

This release of GeoType is intended for Movable Type 4.3x, although it has similar functionality to the original GeoType plugin on MT 3.

It has not been tested in MT 5.x. Since it modifies several visual elements of the Edit Entry screen in MT 4, there is a good chance that it will not work as expected.

Installation

When installed, GeoType will trigger an MT Upgrade screen since it stores location data along with created entries in the database.

To install this plugin, place the

plugins/GeoType

directory in your MT plugins directory, and place the

mt-static/plugins/GeoType

directory in your mt-static/plugins/ directory.

Once the code is in place, you can either start the upgrade in your browser by visiting the URL to log into MT, or you can run it at the command line:

# MT_DIR is the path where your MT installation exists
# (i.e. where mt.cgi lives)
cd MT_DIR

# adminuser is the user name of a System Administrator in the MT
# installation
perl tools/upgrade --name="adminuser"

Configuration

Before you can interact with the GoogleMap API, you need to set the Google API key. Since you'll need one API key per domain, if all of your blogs publish on the same domain that your MT instance resides on, you only have to set this value in the system-level GeoType plugin settings. Otherwise, you have to specify the Google API key under each blog's GeoType plugin settings.

Either way, when you view the GeoType plugin settings, the first input field should be for the API key value with a link to the Google Maps API registration underneath. Click on that API Registration link, check the box to agree to the terms, enter your URL, and generate your API key. Copy and paste the resulting key back into the GeoType plugin settings and save.

Usage

Creating a Location

Go to Create -> Location. Enter an address (i.e. 700 Pennsylvania Avenue, Washington DC), and click GeoCode. Provide a custom label for the location in the next step.

Adding a Location to an Entry

In the Edit Entry screen, there should be a Locations heading in the right sidebar. Add a location to the entry just as you'd add any other asset.

Using the Template Tags

I recommend using the <$MTgeotype:entrymap$> tag in an entry's context to show one map per entry. Add that tag in the body of your Entry Archive to quickly display your map!

Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文