Skip to content

Using MapEx with ZOO

Ramil Valitov edited this page Feb 19, 2016 · 1 revision

How to use Widgetkit MapEx with ZOO Elements

ZOO is an addon for Joomla! developed by Yootheme, read more about ZOO. The widget can be used with and without ZOO. The instruction below describes how to use the MapEx widget with ZOO.

This screenshots and information here refer to CMS Joomla! 3.4.x with ZOO 3.3.15.

Usage in Categories or Types Mode

1️⃣ Setup the App and its App Types

First of all we have to create or edit the App and its Types which we later want to use with our MapEx Widget.

Open the desired App in the App Manager of the ZOO control panel:

Components ➡️ ZOO ➡️ App Manager Zoo App Manager Configuration Icon

Click Edit Elements of the App Type you want to use with MapEx:

Editing elements ZOO elements for MapEx widget

Add a new Image Element and name it Map Marker Icon (or whatever you like).

Create a Google Maps Element and name it Location (or whatever you like), if it doesn't already exist in your App Type:

Creating elements for ZOO and Map widget

Save your Changes.

Note: You don't need to assign those Elements in a Template View. We just need to create it for a later use in the Widget.

2️⃣ Edit the Elements

Create or Edit a ZOO Item for the App Type we modified before. You now should have at least one new Element for the Map Marker Icon.

Now choose your desired Marker Icon File for this Item and make sure you defined a Location in the Google Maps Element:

Editing Zoo items for Map widget

Save the Element and Repeat those Steps for every Item that you want to be visible on the MapEx Widget.

3️⃣ Create Map Widget and connect it with ZOO Items

Category or App Type

Now we create a new MapEx Widget and set Source to ZOO:

Creating Map widget for ZOO

In the Widget settings select your App as App option.

As Mode we can choose Categories and then select the relevant Category or Types and choose the Type of those items we want to show on our map.

Increase the Limit of items that will be loaded by the Widget if needed.

Now you must link the items of the ZOO to the map Widget. You need to add two Custom Fields to do that:

  1. location for the position on the map;
  2. custom_pin_path for the Map Custom Icon.

ZOO Custom fields for Map widget

If you use the Mode Categories, then it is important that you edit the Custom Fields for each Type that you want to be visible on the map.

Important: you must give names the Custom Fields as described above, the Widget always uses location as Location parameter and custom_pin_path as path for the Custom Marker Image.

Finally we have to change the Settings in our MapEx Widget to activate the Custom Marker mode. Open the Settings interface of the widget and set the Marker Pin Icon option to Custom:

Custom Marker Map widget

Now insert your MapEx Widget on your web page where you want it and we're done.

4️⃣ The result

The final result looks as follow:

MapEx widget with ZOO example

P.S. Many thanks to Marco Rensch for providing these instructions!