Fieldtype

EE 1
EE 2
VZ Address

Combined address (street/city/state/zip/country) fieldtype with various output options. Supports P+T Matrix and Low Variables.

Template Tags

Single Tags

{address_field [style="microformat|schema|rdfa|plain"]}

Will output the complete address, in a standard format. Use the style attribute for code that supports one of the markup standards for parseable content (defaults to microformats).

{address_field:street}
{address_field:street_2}
{address_field:city}
{address_field:region}
{address_field:postal_code}
{address_field:country [code="yes"]}

Output particular pieces of the address. If you use the parameter `code=“yes”` on the country tag, you will the the international country code rather than the full name.

Tag Pair

{address_field}
    {street}
    {street_2}
    {city}, {region} {postal_code}
    {country}
{/address_field}

If you need more control over the output, use the tag pair to output each part of the address individually.

{address_field:map_url [source="google|yahoo|bing|mapquest"] [params=""]}

Output a URL to the address on any one of a variety of mapping services. Specify which service you want to use with the source parameter (Google Maps is the default). Anything you put in the params parameter will be added to the end of the map URL, use it to specify zoom levels, map types, etc.

Low Variables Support

Support for Low Variables was kindly added by Adrienne Travis. Note that you must use the {exp:low_variables:parse} syntax to parse VZ Address variables created with Low Variables.

For single tags:

{exp:low_variables:parse var="address_field_name" [style="microformat|schema|rdfa|plain|inline"]}

 
For tag pairs:

{exp:low_variables:parse var="address_field_name" multiple="yes"}
    {street} {!-- note lack of address_field_name: prefix! --}
    {street_2}
    {city}, {region}, {postal_code}
    {country}
{/exp:low_variables:parse}

Installation

Download and unzip the archive. Upload the vz_address folder to /system/expressionengine/third_party/.

Download VZ Address

EE Version Downloads Add-On Version Release Date
2.+ Download 1.3.1 2012-05-22 11:14 AM

VZ Address Links

This entry was last updated May 22, 2012, 8:15 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

Mike Mella 03.13.12

Rating - {addon_rating_average}

Great time-saver.  It would be nice if there were customization options, like selectable fields and labels, but still great.