• MODX.com

    1,201 downloads

LocationResources

LocationResources is an extra by muzzstick, first released on 2017-08-18.

Package Description

Google Maps Custom Resource Class Extra for MODX Revolution.

There is no need to use multiple template variables to achieve a similar result.

LocationResources includes a slick drag and drop interface users will love. Both simple and customizable.

Usage/Installation Instructions

18.08.2017 - Version 1.3.2

Usage:

------

First add your Google Maps API Key into the system settings. Then, in the manager simply create a new resource of "Location" type. You will see the map displayed above the main resource content field.You can drag the map around and zoom to position it. You can choose to add a marker, position it and add an info window to it.

Remember to save the resource!

Then to have it displayed on your web context:

Call this snippet on any template/chunk attached to the LocationResource: [[locationResourcesMap]]

This will display a map with all the default settings.

For customization, you can call the snippet with currently five parameters:

[[locationResources? &docid=`[resource id here]` &parents=`3,27,9` &tpl=`myCustomTpl` &js=`myCustomJS` &css=`myCustomDefaultCSS`]]

Parameters

==========

&docid

The ID of the resource you wish to pull for map display. Defaults to the current resource if not supplied.

&tpl

Put the name of your custom chunk that contains the main map div.

&js

Put the name of your custom chunk that contains the script to display the map.

&css

Put the name of your custom chunk that contains your own css. (Or you can choose not to use default css in your system settings and style on your own).

&parents

Accepts a comma-separated list of resource ids. If any children of that resource are LocationResources and have a marker set, those markers will be add via clustering top the map.This is in addition to the marker that belongs to the LocationResource controlling the main map. This marker will not be clustered. If you don't want it shown, you can remove it.

Details

Developer(s)
muzzstick
Released
2017-08-18
First seen
2017-08-18
License
GPLv2
Supported databases
MySQL
Minimum MODX Requirement
2.3

LocationResources Releases

Vendor Signature Released on
MODX.com 1.3.2-pl 2017-08-18 (1 year ago)

We've also seen 3 unverified versions of LocationResources in use, but don't list those as we've been unable of confirming they are official releases from an official source.