{module_webappsmap}

Description

Displays the webapp items as pointers on a Google map.

Syntax

{module_webappsmap id="webappId|webappName" filter="item" itemId="categoryId|categoryName)|itemId" googleKey="" width="400" height="400" collection="my_custom_collection_name" template=""}

Note: When using named parameters always wrap the individual parameters in double quotes. Also, do note that modules using named parameters do not work for campaigns just yet.

Parameters

  • id - the webapp ID or the webapp name
  • filter - filtering criteria for display and can be one of the following:
    • item - individual item
    • all - all items
    • latest - latest items
    • latestClassified - latest items in a category
    • random - random item
    • randomClassified - displays a random item in a particular category
    • classified - all the items in a category
  • itemid -the category ID or the category name
  • googleKey - enter the Google Maps key here. To get a key please follow the steps described in this article.
  • width - the width in pixels of the Google Maps canvas
  • height - the height in pixels of the Google Maps canvas
  • resultsPerPage - total number of items that will be rendered, enter "-1" to render all the items
  • collection - use this if you need to access the module's Liquid output tags
  • template - this module does not support custom templates. You can use the template parameter however to supress the module's output

This module is rendered:

  • using a Google map - the webapp items are plotted as pins on a Google map, for example:
  • Liquid collections - here are the Liquid output tags you can use:

Warning: if you need to access a liquid tag that has a space in its name, for example tag_large image_value use this syntax: {{cars1.items[0].["large image_value"]}} - Liquid does not allow for the name of its output tags to contain spaces. In this case the tag that contains a space needs to be wrapped in square bracketsĀ and quotes and preceded by the name of the collection (in this case cars1).

Liquid tag Description
{{address1}} Address1
{{address2}} Address2
{{city}} City
{{country}} Country
{{latitude}} Latitutde of web app item address
{{longitude}} Longitude of web app item address
{{state}} State
{{postalCode}} ZIP code
{{counter}} Incremental count of the item on the page
Creates a link that allows current customer to delete a web app item they have previously submitted (only available if customer logged in to a secure zone)
{{description}} Description of item (editor content). On the "List Layout (Backup)" you can use {tag_description,10} to display the first 10 characters of the webapp item's description.

Examples

  • {module_webappsmap id="56" filter="a" googleKey= "ABCD" width="400" height="400" resultsPerPage="-1"} - displays all the webapp items on a 400px x 400px Google map
  • {module_webappsmap id="56" googleKey= "ABCD" collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.

Syntax

{module_webappsmap,id,filter,itemid,Google key,width,height,resultsPerPage}

Parameters

  • id - the webapp ID or the webapp name
  • filter - filtering criteria for display and can be one of the following:
    • i - individual item
    • a - all items
    • l - latest items
    • r - random item
    • cl - latest items in a particular category
    • cr - displays a random item in a particular category
  • itemid -the category ID or the category name
  • Google key - enter the Google Maps key here. To get a key please follow the steps described in this article.
  • width - the width in pixels of the Google Maps canvas
  • height - the height in pixels of the Google Maps canvas
  • resultsPerPage - total number of items that will be rendered, enter "-1" to render all the items

This module is rendered with these layouts

  • This module does not use any layouts. The webapp items are plotted as pins on a Google map, for example:

Examples

  • {module_webappsmap,56,a,,MY_GOOGLE_KEY,400,400,-1} - displays all the webapp items on a 400px x 400px Google map