Front-end submission
Members can add locations from the site. They fill in a form with the same main fields as the administrator, place the marker with the GeoCoder tool and send it. You decide whether new locations go online at once or wait for your approval.
Allow members to submit
- Open Components > JoomMap > Options and go to the Permissions tab.
- Select the user group, for example Registered, and set Create to Allowed.
- Click Save.
JoomMap gives no group this permission on a new install. Guests can submit only if you allow Create for the Public or Guest group, which is not a good idea without a captcha.
Give members a way to the form
Choose one or both:
- The Add Location button. Set Show Add Location Button to Yes on the Map / Display tab of the options. The button appears above the map on every map page, for users with the Create permission. It opens the form in a window on top of the map.
- A Form menu item. Create a menu item of the type JoomMap > Form, see Menu items. Put it in a menu that only registered users see. Users without the Create permission get a "not authorised" message instead of the form.
The form
The form has:
- Title, Location image (an upload field for GIF, PNG or JPG images) and Description,
- Parent map, Primary Location Type and Additional Location types (optional),
- Address (display), Phone number, the Open GeoCoder Tool button, Latitude and Longitude,
- the custom fields of the chosen primary type, as extra tabs,
- the captcha, if one is set.
The lists of maps and types only show published maps and types. Uploaded images are stored in images/location. The Enable Editor Buttons option on the Submission tab shows or hides Joomla's editor buttons below the description.
Approval
Auto Approve on the Submission tab decides what happens with a new location:
- No (default): the location is saved unpublished. The member sees "your location it's still pending approval". You find it in Components > JoomMap > Locations, filtered by status, and publish it there.
- Yes: the location is published at once.
Check new submissions before you publish them, including the address and phone number, and only give the Create permission to groups you trust. See Known problems in 6.0.1.
Email notification
On the Email tab of the options:
| Field | What it does |
|---|---|
| Email Notification | One or more addresses, separated by commas, that get an email for each new location. Leave it empty to send no email |
| Email Subject | The subject of the email. The default is "New Location Alert" |
| Email Body | The text of the email. You can use the placeholders {title}, {description}, {email}, {type}, {latitude}, {longitude} and {map} |
{email} is the email address of the member, {map} is the title of the map and {type} is the alias of the primary type. The email is sent from the address in System > Global Configuration > Server > Mail Settings. Only locations added through the site form send an email, not those you add in the administrator.
Captcha
- Enable a captcha plugin in System > Plugins, for example Captcha - reCAPTCHA, and enter its keys.
- On the Submission tab, choose it in Allow Captcha on submit. With Use Global, the captcha from Global Configuration is used.
Editing own locations
Users with Edit Own see an edit button on the pages of the locations they added. It opens the same form. Users with Edit may edit any location through the form, but the edit button only shows to the author. Give these permissions on the Permissions tab of the options, see Permissions.
Known problems in 6.0.1
- The site form does not check every field strictly enough. Only give Create and Edit Own to people you trust, keep Auto Approve on No and check each new location before you publish it.
- Unpublished locations are not hidden from visitors who know the address of their page. Do not put private information in a location before it is ready to be published.
These problems are listed to be fixed in a later version.