About Form2Content Forms & Fields

Form2Content forms are used to collect data to generate Joomla articles. Each content type has it's own form. Each form can have as many fields as you like. You can access the Fields Manager by clicking on the  in the Content Type Manager. Please read about article templating on how to get the data from the forms into your Joomla article.

Geocoder field

Translate an address to latitude/longitude using a simple lookup button on Google Maps.

Template parameters available

{$< FIELDNAME >_ADDRESS} = This will render the text from the address line.
{$< FIELDNAME >_LON} = The longitude
{$< FIELDNAME >_LAT} = The latitude

*(where < FIELDNAME > = the unique field name filled out in the settings)

(In F2C PRO only) The Geocoder field is used to collect location information (latitude/longitude). It will display a map in your submission form and calculate the marker position based on an address submitted by the visitor/user. If the location of the marker isn't exact, the user can select and drag the marker to the right location before save.

IMPORTANT: As per july 2018 you are required to have an active Google Cloud platform account. You will need to add payment details in order to be able to visualise Google Maps and use the geocoder API. Please read this page for more information: https://developers.google.com/maps/documentation/javascript/geocoding

Please note: This F2C Field does not create a map with a marker in your Joomla article! See below how you can accomplish that.

Geocoder field settings

The settings for this field are very logical and are about how the Google map will be displayed in the submission form. Size, default position/location etc. (image 1 & 3). This will result in the map in your form, image 2.

Example: Joomla google maps plugin & F2C

It is possible to display a Google map with marker (location with information) using the GeoCoder field and a Joomla Google maps plugin like Mike Reumers.

IMPORTANT: It seems Mike's plugin is no longer available. An alternative is GoogleMaps by kksou which works in a similar way. https://extensions.joomla.org/extension/googlemaps-by-kksou/

{ldelim}mosmap width='100%'|height='500px'|lat='{$FIELDNAME_LAT}'|lon='{$FIELDNAME_LON}'|zoom='15'|zoomType='Large'|showScale='1'| zoomNew='1'|mapType='Satellite'|showMaptype='1'|overview='1'|text='{$TEXT_IF_YOU_LIKE}'|tooltip='{$FIELDNAME_ADDRESS}'{rdelim}

Other extensions which are worth checking out include:

F2C Cheat-sheet

An overview of all template parameters (placeholders for your form data). These are used in your F2C intro and main template to parse the data from your submission forms into the Joomla article.



Form2Content, a Joomla CCK Documentation © 2010 - 2015 Open Source Design | Powered by Form2Content