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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use field in a groupuse_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 group | multilist | 0 = No1 = Yes | 0 (No) |
Number of values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show Onshowon | 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 | — | — |
Requiredrequired | Choose yes if the field must be filled | radio | 0 = No1 = Yes | 0 (No) |
Allow multiple valuesallow_multiple | Allow more than 1 value for this field | multilist | 0 = No1 = Yes | 0 (No) |
max # valuesmax_values | The max number of values you wish to record | text | — | 0 |
Values per rowfields_box_placing | Save space by allowing multiple values to show per row | radio | 0 = 11 = Multiple | 0 (1) |
Add positionadd_position | Select to add value inline (show add button at every value) or append them to the bottom of the value list | multilist | 0 = Append to bottom1 = Inline append2 = Inline prepend3 = Inline both | 3 (Inline both) |
Values Creation
Search limitations
Type
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Defaultac_types_default | Select a search type that will be used as default when creating a new address | radio | — = Allgeocode = Geographical Locationaddress = Exact Addressestablishment = Business Location(regions) = Region(cities) = City Or Province | — |
User selectionac_type_allowed_list | Select which types of autocomplete search will be allowed to the user | fccheckbox | — | — |
Country
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Defaultac_country_default | Select a country that will be used as default when creating a new address | fccountries | — | — |
Allowed Countries (none = ALL)ac_country_allowed_list | Countries that will be allowed for search and selection. Leave blank to allow all | fccountries | — | — |
Form field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label_form | Display or hide label of this field | radio | 0 = No1 = Floated left2 = Cleared | 1 (Floated left) |
Labellabel_form | Enter a label to use for item form that is different than field label for viewing | text | — | — |
No access messageno_acc_msg_form | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Card width (px)form_card_width | Width of the address card in the item edit form, in pixels | text | — | 600 |
Layout
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Fields layoutformlayout | 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 modify | fcfilelist | — | — |
Edit Lat/Lonedit_latlon | Select whether latitude and longitude coordinates can be edited. | radio | 0 = No2 = Readonly1 = Yes | 1 (Yes) |
Address edit modeaddr_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.) | multilist | plaintext = Plain text modeformatted = Formatted mode | plaintext (Plain text mode) |
Map Typemap_type | Select the type of map to show | radio | roadmap = Roadmapsatellite = Satellitehybrid = Hybridterrain = Terrain | roadmap (Roadmap) |
Default Map Zoommap_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. | list | 1 = 1 - World2 = 23 = 34 = 4 - Continent5 = 56 = 67 = 7 - Country8 = 89 = 910 = 10 - Region11 = 1112 = 1213 = 13 - City14 = 1415 = 1516 = 16 - Neighborhood17 = 1718 = 1819 = 19 - Street20 = 2021 = 21 | 16 (16 - Neighborhood) |
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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Required propertiesrequired_props_plaintext | Select individual properties that you would like them to be required. This effects every individual 'value' of the field. | list | address = Addresslatitude = Latitudelongitude = Longitude | — |
Required propertiesrequired_props | Select individual properties that you would like them to be required. This effects every individual 'value' of the field. | list | business_location = Business / Locationstreet_address = Street Addresscity = Cityus_state = US Statenon_us_state_province = State/Province (non US)zip_postal_code = ZIP Code/Postal Codecountry = Countrylatitude = Latitudelongitude = Longitude | — |
Optional Properties
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Business / Location nameuse_name | Enable this if your are searching businesses or if you want to use titles for your addresses | radio | 0 = Hide1 = Show | 1 (Show) |
US stateuse_usstate | Show or hide the list of US states when editing in Formatted mode | radio | 0 = Hide1 = Show | 1 (Show) |
Provinceuse_province | Show or hide the Province field when editing in Formatted mode | radio | 0 = Hide1 = Show | 1 (Show) |
Countryuse_country | Show or hide the list of countries when editing in Formatted mode | multilist | 0 = Hide1 = Show | 1 (Show) |
Marker Icon
Note: Custom markers are displayed only if using 'Interactive Map'. (Set this in Viewing Tab / Layout Tab)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Custom Markeruse_custom_marker | Allow user to select custom icon marker | multilist | 0 = Disable1 = Enable | 0 (Disable) |
Markers foldercustom_marker_path | — | text | — | modules/mod_flexigooglemap/assets/marker |
Default Marker Icondefault_marker_file | Default icon to pre-select in the marker icon selector e.g. icon-blue.png | text | — | — |
Show marker anchorshow_marker_anchor | Show the marker anchor selection list in the item edit form | radio | 0 = No1 = Yes | 0 (No) |
Manual data (Not auto-filled on search)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
ZIP /Postal code suffixuse_zip_suffix | Show or hide the ZIP/Postal code suffix field when editing in Formatted mode | radio | 0 = Disable1 = Enable | 0 (Disable) |
Address line 2use_addr2 | Show or hide the 2nd line for street address when editing in Formatted mode | radio | 0 = Disable1 = Enable | 0 (Disable) |
Address line 3use_addr3 | Show or hide the 3rd line for street address when editing in Formatted mode | radio | 0 = Disable1 = Enable | 0 (Disable) |
Map Configuration
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Width (px)map_width_form | Set map width in pixels | text | — | 350 |
Height (px)map_height_form | Set map height in pixels | text | — | 250 |
Editing
Viewing
Viewing
Basic
Display
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show in clientsshow_in_clients | Select if the field will be created and shown to specific clients | fccheckbox | — | — |
Show in viewsshow_in_views | Select if the field will be created and shown to specific views | fccheckbox | — | — |
Label and access
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label | Display or hide label of this field | radio | 0 = No1 = Yes | 1 (Yes) |
Show no access messageshow_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 exists | multilist | 0 = No1 = Yes | 0 (No) |
No access messageno_acc_msg | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Export
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Include in CSV exportinclude_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 fields | multilist | 0 = No1 = Raw values2 = Rendered values | 0 (No) |
Strip HTML tagscsv_strip_html | — | radio | 0 = No1 = Yes | 0 (No) |
Customizecsv_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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Backend view appearancebackend_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. | multilist | 0 = Default1 = Check mark2 = 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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Values layoutviewlayout | 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 modify | fcfilelist | — | — |
Address Configuration
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show addressshow_address | Select whether the address text should displayed | multilist | 0 = Nevercategory = Category view onlyitem = Item view onlyboth = Always | both (Always) |
Address display modeaddr_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.) | multilist | plaintext = Plain text modeformatted = Formatted mode | plaintext (Plain text mode) |
Leave empty to load defaults
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Address formataddr_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 linkdirections_position | Select how directions link should be displayed | multilist | 0 = Nonebefore = Before addressafter = After address | — |
Directions link labeldirections_link_label | Label for the directions link. Leave blank to use default. | text | — | — |
Map Configuration
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show Mapshow_map | Select whether a Google map should be displayed with the address | multilist | 0 = Nevercategory = Category view onlyitem = Item view onlyboth = Always | none |
Embed typemap_embed_type | Select the type of embed: image or interactive map | multilist | int = Interactive mapimg = Static map (Image) | int (Interactive map) |
Map Typemap_type_view | Select the type of map to show | radio | — = Same as editroadmap = Roadmapsatellite = Satellitehybrid = Hybridterrain = Terrain | — |
Zoom levelmap_zoom_view | Zoom level of the map | radio | — = Per value | — |
Static map (Image)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Map Clickablelink_map | For image map: adds a link to Google Maps for the location shown in the map image. Opens in a new window. | radio | 0 = No1 = Yes | 1 (Yes) |
Note: Custom marker images are not used in image-map mode. Instead the following settings are used
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Marker Colormarker_color | Select the color of the location marker in the map. | list | black = Blackbrown = Browngreen = Greenpurple = Purpleyellow = Yellowblue = Bluegray = Grayorange = Orangered = Redwhite = White | red (Red) |
Marker Sizemarker_size | Select the size of the marker | radio | tiny = Tinymid = Midsmall = Smallnormal = Normal | mid (Mid) |
Minimum sizes
Fixed sizes
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Width (px)map_width | Set map width in pixels | text | — | 200 |
Height (px)map_height | Set map height in pixels | text | — | 150 |
Position, Style
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Map Positionmap_position | Renders the map image before or after the address text | radio | 0 = Before address1 = After address | 0 (Before address) |
Map style Gen stylemap_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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Preset configurationsprx_sfx_open_close_configs | This is a list of preset configurations, after loading them, you can click custom again to customize them | multilist | — = Customize1 = List: numbered2 = List (bullets)3 = List (circle)4 = List (square)5 = List (no marking)6 = Badge7 = Badge success8 = Badge info9 = Badge warning10 = Badge important | — |
Remove spaceremove_space | Remove the space between prefix value and suffix. It's recommended for plugin use, for example {play}mysong.mp3{/play} | radio | 0 = No1 = Yes | 0 (No) |
Every value prefixpretext | This text is placed immediately before every field value | text | — | — |
Every value suffixposttext | This text is placed immediately after every field value | text | — | — |
NOTE: opening / closing texts and value separator, are not used inside a fieldgroup
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Value separator (frontend views)separatorf | Choose a separator to separate the values in frontend views (placed between values) | multilist | 0 = Space1 = Line break6 = Horizontal line2 = Pipe3 = Comma4 = Texts: Closing + Opening5 = Empty (No characters)7 = Custom separator | 1 (Line break) |
Custom separatorseparatorf_custom | — | text | — | — |
Opening text for Fieldopentag | 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 Fieldclosetag | 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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Trigger content pluginstrigger_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. | multilist | 0 = No1 = Yes | 0 (No) |
Trigger inside categorytrigger_plgs_incatview | Trigger content plugins on this field when item is displayed in a category view | radio | 0 = No1 = Yes | 0 (No) |
Specific plugins onlyplugins | 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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Map Enginemapapi_edit | — | multilist | googlemap = GoogleMapnominatim = Nominatim (OpenStreetMap) | googlemap (GoogleMap) |
Google Maps API Keygoogle_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-key | text | — | — |
To get your Google Map API key(s) please click here: Get Key
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.
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Custom Tile Server URLnominatim_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}.png | text | — | — |
Nominatim API base URLnominatim_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 user | text | — | — |
Viewing
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Map Enginemapapi | — | multilist | googlemap = GoogleMapopenstreetmap = OpenStreetMap | googlemap (GoogleMap) |
Optionally use a different key for viewing, e.g. to get different statistics in google console ...
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Google Maps API Keygoogle_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-key | text | — | — |
Tile (Map) Server URLos_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}.png | text | — | 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 user | text | — | — |
Properties as Fields
Store properties as fields
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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Business or locationfield_name | — | fields | — | — |
Address 1field_addr1 | — | fields | — | — |
Address 2field_addr2 | — | fields | — | — |
Address 3field_addr3 | — | fields | — | — |
Cityfield_city | — | fields | — | — |
Zipfield_zip | — | fields | — | — |
Countryfield_country | — | fields | — | — |
Longitudefield_lon | — | fields | — | — |
Latitudefield_lat | — | fields | — | — |
Markerfield_marker | — | fields | — | — |