Skip to main content

International address / Google Maps

This field adds address information to items. Includes detailed fields for street address, city, state/province, zip/postal code and country. In the case of US addresses it includes a drop down list of States. It has a javascript geo-location function that gets latitude and longitude of the address using Google Map API for storage in the DB. In the frontend it automatically displays only the fields that have data, with a Google Map image of the location with a marker. The field configuration has several options to control the displaying in the frontend.

Plugin : addressint — International Address / Google Maps

:::info Source This page is generated from plugins/flexicontent_fields/addressint/addressint.xml and the official FLEXIcontent 5.x language files. :::

Editing​

Editing​

Values​

OptionDescriptionTypeValuesDefault
Use field in a group
use_ingroup
Enable to allow field to be part of field group, that is created via 'Field Group' field. NOTE: You should then select this field in ONLY ONE field groupmultilist0 = No
1 = Yes
0 (No)

Number of values​

OptionDescriptionTypeValuesDefault
Show On
showon
Shown On Conditions. Use Joomla Format 'fieldname:value' e.g album_type:2 NOTE: DO not set this field to required. Also DISABLE prettyCheckable / Select2 JS in any referenced fields of type select*, checkbox*, radio*text——
Required
required
Choose yes if the field must be filledradio0 = No
1 = Yes
0 (No)
Allow multiple values
allow_multiple
Allow more than 1 value for this fieldmultilist0 = No
1 = Yes
0 (No)
max # values
max_values
The max number of values you wish to recordtext—0
Values per row
fields_box_placing
Save space by allowing multiple values to show per rowradio0 = 1
1 = Multiple
0 (1)
Add position
add_position
Select to add value inline (show add button at every value) or append them to the bottom of the value listmultilist0 = Append to bottom
1 = Inline append
2 = Inline prepend
3 = Inline both
3 (Inline both)

Values Creation​

Search limitations​

note

Type

OptionDescriptionTypeValuesDefault
Default
ac_types_default
Select a search type that will be used as default when creating a new addressradio— = All
geocode = Geographical Location
address = Exact Address
establishment = Business Location
(regions) = Region
(cities) = City Or Province
—
User selection
ac_type_allowed_list
Select which types of autocomplete search will be allowed to the userfccheckbox——
note

Country

OptionDescriptionTypeValuesDefault
Default
ac_country_default
Select a country that will be used as default when creating a new addressfccountries——
Allowed Countries (none = ALL)
ac_country_allowed_list
Countries that will be allowed for search and selection. Leave blank to allow allfccountries——

Form field​

OptionDescriptionTypeValuesDefault
Display label
display_label_form
Display or hide label of this fieldradio0 = No
1 = Floated left
2 = Cleared
1 (Floated left)
Label
label_form
Enter a label to use for item form that is different than field label for viewingtext——
No access message
no_acc_msg_form
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——
Card width (px)
form_card_width
Width of the address card in the item edit form, in pixelstext—600

Layout​

OptionDescriptionTypeValuesDefault
Fields layout
formlayout
Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/field_*.php as field_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modifyfcfilelist——
Edit Lat/Lon
edit_latlon
Select whether latitude and longitude coordinates can be edited.radio0 = No
2 = Readonly
1 = Yes
1 (Yes)
Address edit mode
addr_edit_mode
Selects the edit mode for address. Plain text mode: uses address display field only. Formatted mode: shows the address components so that they can be edited individually (street, city, state, etc.)multilistplaintext = Plain text mode
formatted = Formatted mode
plaintext (Plain text mode)
Map Type
map_type
Select the type of map to showradioroadmap = Roadmap
satellite = Satellite
hybrid = Hybrid
terrain = Terrain
roadmap (Roadmap)
Default Map Zoom
map_zoom
Select the zoom level for image map, and initial zoom for interactive map. When editing an item, the zoom level is saved and used for display.list1 = 1 - World
2 = 2
3 = 3
4 = 4 - Continent
5 = 5
6 = 6
7 = 7 - Country
8 = 8
9 = 9
10 = 10 - Region
11 = 11
12 = 12
13 = 13 - City
14 = 14
15 = 15
16 = 16 - Neighborhood
17 = 17
18 = 18
19 = 19 - Street
20 = 20
21 = 21
16 (16 - Neighborhood)
note

Please note - 'Edit' & 'Skip' buttons will be shown for every value, if field is not required - At least 1 property will be forced to required, if field is required without any required properties

OptionDescriptionTypeValuesDefault
Required properties
required_props_plaintext
Select individual properties that you would like them to be required. This effects every individual 'value' of the field.listaddress = Address
latitude = Latitude
longitude = Longitude
—
Required properties
required_props
Select individual properties that you would like them to be required. This effects every individual 'value' of the field.listbusiness_location = Business / Location
street_address = Street Address
city = City
us_state = US State
non_us_state_province = State/Province (non US)
zip_postal_code = ZIP Code/Postal Code
country = Country
latitude = Latitude
longitude = Longitude
—

Optional Properties​

OptionDescriptionTypeValuesDefault
Business / Location name
use_name
Enable this if your are searching businesses or if you want to use titles for your addressesradio0 = Hide
1 = Show
1 (Show)
US state
use_usstate
Show or hide the list of US states when editing in Formatted moderadio0 = Hide
1 = Show
1 (Show)
Province
use_province
Show or hide the Province field when editing in Formatted moderadio0 = Hide
1 = Show
1 (Show)
Country
use_country
Show or hide the list of countries when editing in Formatted modemultilist0 = Hide
1 = Show
1 (Show)

Marker Icon​

note

Note: Custom markers are displayed only if using 'Interactive Map'. (Set this in Viewing Tab / Layout Tab)

OptionDescriptionTypeValuesDefault
Custom Marker
use_custom_marker
Allow user to select custom icon markermultilist0 = Disable
1 = Enable
0 (Disable)
Markers folder
custom_marker_path
—text—modules/mod_flexigooglemap/assets/marker
Default Marker Icon
default_marker_file
Default icon to pre-select in the marker icon selector e.g. icon-blue.pngtext——
Show marker anchor
show_marker_anchor
Show the marker anchor selection list in the item edit formradio0 = No
1 = Yes
0 (No)
OptionDescriptionTypeValuesDefault
ZIP /Postal code suffix
use_zip_suffix
Show or hide the ZIP/Postal code suffix field when editing in Formatted moderadio0 = Disable
1 = Enable
0 (Disable)
Address line 2
use_addr2
Show or hide the 2nd line for street address when editing in Formatted moderadio0 = Disable
1 = Enable
0 (Disable)
Address line 3
use_addr3
Show or hide the 3rd line for street address when editing in Formatted moderadio0 = Disable
1 = Enable
0 (Disable)

Map Configuration​

OptionDescriptionTypeValuesDefault
Width (px)
map_width_form
Set map width in pixelstext—350
Height (px)
map_height_form
Set map height in pixelstext—250

Editing​

Viewing​

Viewing​

Basic​

Display​

OptionDescriptionTypeValuesDefault
Show in clients
show_in_clients
Select if the field will be created and shown to specific clientsfccheckbox——
Show in views
show_in_views
Select if the field will be created and shown to specific viewsfccheckbox——

Label and access​

OptionDescriptionTypeValuesDefault
Display label
display_label
Display or hide label of this fieldradio0 = No
1 = Yes
1 (Yes)
Show no access message
show_acc_msg
When field is inaccessible a no access message will be shown. NOTE: IF this parameter is disabled, the field will be invisible to users with no access, without any message or warning that it existsmultilist0 = No
1 = Yes
0 (No)
No access message
no_acc_msg
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——

Export​

OptionDescriptionTypeValuesDefault
Include in CSV export
include_in_csv_export
Select to include field in CSV export. Take care that not all fields support CSV export. Please test to determine if this field is included properly, since a special method is needed but not implemented yet by all fieldsmultilist0 = No
1 = Raw values
2 = Rendered values
0 (No)
Strip HTML tags
csv_strip_html
—radio0 = No
1 = Yes
0 (No)
Customize
csv_export_text
Use {{addr_display}} {{addr_formatted}} {{addr1}} {{city}} {{zip}} {{lat}} {{lon}} {{url}} {{zoom}} {{name}} {{addr2}} {{addr3}} {{state}} {{country}} {{province}} {{zip_suffix}}textarea—{{addr1}} {{city}} ZIP: {{zip}}

Backend View​

OptionDescriptionTypeValuesDefault
Backend view appearance
backend_view_appearance
How this field's value is displayed in the admin items list. Overrides the global 'Custom columns appearance' setting when not set to Default.multilist0 = Default
1 = Check mark
2 = Clean up HTML and trim
0 (Default)
Trim length (characters)
backend_view_trim_chars
Number of characters to keep after stripping HTML tags.text—100

Layout​

OptionDescriptionTypeValuesDefault
Values layout
viewlayout
Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/value_*.php as value_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modifyfcfilelist——

Address Configuration​

OptionDescriptionTypeValuesDefault
Show address
show_address
Select whether the address text should displayedmultilist0 = Never
category = Category view only
item = Item view only
both = Always
both (Always)
Address display mode
addr_display_mode
Selects the display mode for address. Plain text mode: uses text from Address Display field. Formatted mode: allows setting an html address template that uses the address components (street, city, state, etc.)multilistplaintext = Plain text mode
formatted = Formatted mode
plaintext (Plain text mode)
note

Leave empty to load defaults

OptionDescriptionTypeValuesDefault
Address format
addr_format_tmpl
Sets the HTML format template when display mode is Formatted. To enter field values use {{fieldname}}. To render conditionally, only if value is not empty, use [[fieldname|output]]. Valid options are: name, addr1, addr2, addr3, city, state, province, zip, zip_suffix, country, lat, lon. See default value for example.textarea—[[name|{{name}}]] [[addr1|{{addr1}} ]] [[addr2|{{addr2}} ]] [[addr3|{{addr3}} ]] [[city|{{city}}]] [[state|{{state}}]][[province|{{province}},]] {{zip}}[[zip_suffix|-{{zip_suffix}}]] {{country}}
Show directions link
directions_position
Select how directions link should be displayedmultilist0 = None
before = Before address
after = After address
—
Directions link label
directions_link_label
Label for the directions link. Leave blank to use default.text——

Map Configuration​

OptionDescriptionTypeValuesDefault
Show Map
show_map
Select whether a Google map should be displayed with the addressmultilist0 = Never
category = Category view only
item = Item view only
both = Always
none
Embed type
map_embed_type
Select the type of embed: image or interactive mapmultilistint = Interactive map
img = Static map (Image)
int (Interactive map)
Map Type
map_type_view
Select the type of map to showradio— = Same as edit
roadmap = Roadmap
satellite = Satellite
hybrid = Hybrid
terrain = Terrain
—
Zoom level
map_zoom_view
Zoom level of the mapradio— = Per value—

Static map (Image)​

OptionDescriptionTypeValuesDefault
Map Clickable
link_map
For image map: adds a link to Google Maps for the location shown in the map image. Opens in a new window.radio0 = No
1 = Yes
1 (Yes)
note

Note: Custom marker images are not used in image-map mode. Instead the following settings are used

OptionDescriptionTypeValuesDefault
Marker Color
marker_color
Select the color of the location marker in the map.listblack = Black
brown = Brown
green = Green
purple = Purple
yellow = Yellow
blue = Blue
gray = Gray
orange = Orange
red = Red
white = White
red (Red)
Marker Size
marker_size
Select the size of the markerradiotiny = Tiny
mid = Mid
small = Small
normal = Normal
mid (Mid)

Minimum sizes​

Fixed sizes​

OptionDescriptionTypeValuesDefault
Width (px)
map_width
Set map width in pixelstext—200
Height (px)
map_height
Set map height in pixelstext—150

Position, Style​

OptionDescriptionTypeValuesDefault
Map Position
map_position
Renders the map image before or after the address textradio0 = Before address
1 = After address
0 (Before address)
Map style Gen style
map_style
Copy - paste the json code that is created by snazzy maps. NOTE: use [] AT START AND END of the styling [custom style code]textarea——

Prefix - Suffix - Separator​

OptionDescriptionTypeValuesDefault
Preset configurations
prx_sfx_open_close_configs
This is a list of preset configurations, after loading them, you can click custom again to customize themmultilist— = Customize
1 = List: numbered
2 = List (bullets)
3 = List (circle)
4 = List (square)
5 = List (no marking)
6 = Badge
7 = Badge success
8 = Badge info
9 = Badge warning
10 = Badge important
—
Remove space
remove_space
Remove the space between prefix value and suffix. It's recommended for plugin use, for example {play}mysong.mp3{/play}radio0 = No
1 = Yes
0 (No)
Every value prefix
pretext
This text is placed immediately before every field valuetext——
Every value suffix
posttext
This text is placed immediately after every field valuetext——
note

NOTE: opening / closing texts and value separator, are not used inside a fieldgroup

OptionDescriptionTypeValuesDefault
Value separator (frontend views)
separatorf
Choose a separator to separate the values in frontend views (placed between values)multilist0 = Space
1 = Line break
6 = Horizontal line
2 = Pipe
3 = Comma
4 = Texts: Closing + Opening
5 = Empty (No characters)
7 = Custom separator
1 (Line break)
Custom separator
separatorf_custom
—text——
Opening text for Field
opentag
This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——
Closing text for Field
closetag
This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——

Content plugins​

Content Plugins -- You need this for description field, for other fields enable only if needed​

OptionDescriptionTypeValuesDefault
Trigger content plugins
trigger_onprepare_content
Enable this option if you want to trigger content plugin event: onPrepareContent. A small number of plugins may not work outside com_content.multilist0 = No
1 = Yes
0 (No)
Trigger inside category
trigger_plgs_incatview
Trigger content plugins on this field when item is displayed in a category viewradio0 = No
1 = Yes
0 (No)
Specific plugins only
plugins
You can choose specific plugins in this list or leave empty to trigger all. This feature is useful in some cases to avoid conflicts, multiple displays or reduce the load. Keep in mind that once the plugin is imported for a field, it will automatically be executed on all following fields in the loop.pluginlist——

Viewing​

Map Provider​

Editing​

OptionDescriptionTypeValuesDefault
Map Engine
mapapi_edit
—multilistgooglemap = GoogleMap
nominatim = Nominatim (OpenStreetMap)
googlemap (GoogleMap)
Google Maps API Key
google_maps_js_api_key
Enter a key with Maps JavaScript API and Places API (New) enabled for the item form. You can get your key following the instructions at https://developers.google.com/maps/documentation/javascript/get-api-keytext——
note

To get your Google Map API key(s) please click here: Get Key

note

No API key required. Address search uses the public Nominatim API (OpenStreetMap). The interactive map uses Leaflet. For high-traffic sites, consider hosting your own Nominatim instance.

OptionDescriptionTypeValuesDefault
Custom Tile Server URL
nominatim_tile_url
Optional. Leave empty to use the default OpenStreetMap tile server (https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png). Use {s}, {z}, {x}, {y} placeholders. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.pngtext——
Nominatim API base URL
nominatim_api_url
Leave empty for the public OpenStreetMap service. Search runs only when submitted. The public service prohibits autocomplete and limits total application traffic to one request per second; use a cached proxy or another provider for larger sites. See https://operations.osmfoundation.org/policies/nominatim/. https://nominatim.openstreetmap.org/url——
Force language code (e.g. en)
api_lang_code_edit
Let this be empty to use language of current usertext——

Viewing​

OptionDescriptionTypeValuesDefault
Map Engine
mapapi
—multilistgooglemap = GoogleMap
openstreetmap = OpenStreetMap
googlemap (GoogleMap)
note

Optionally use a different key for viewing, e.g. to get different statistics in google console ...

OptionDescriptionTypeValuesDefault
Google Maps API Key
google_maps_static_api_key
Enter a Google Maps API key to be used for viewing. You can use the Google Maps API without a key but the usage limits are considerably lower. You can get your key following the instructions at https://developers.google.com/maps/documentation/static-maps/get-api-keytext——
Tile (Map) Server URL
os_tile_server_url
Enter a custom tile server URL (of Openstreet Maps). If you are going to be having a lot of traffic it is best to setup your own tiles server for hosting your map tiles, e.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.pngtext—https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
Force language code (e.g. en)
api_lang_code
Let this be empty to use language of current usertext——

Properties as Fields​

Store properties as fields​

note

You can select to store some properties as individual fields (e.g. for easier filtering / search). Steps: - create text fields - assign them to same types as this field - set them to be form-hidden - then select them here

OptionDescriptionTypeValuesDefault
Business or location
field_name
—fields——
Address 1
field_addr1
—fields——
Address 2
field_addr2
—fields——
Address 3
field_addr3
—fields——
City
field_city
—fields——
Zip
field_zip
—fields——
Country
field_country
—fields——
Longitude
field_lon
—fields——
Latitude
field_lat
—fields——
Marker
field_marker
—fields——