Custom fields
JoomMap uses Joomla's own custom fields. Each location type has its own set of fields and field groups. A hotel type can have stars and a check-in time, a restaurant type opening hours and a menu link. Every field type your Joomla site has can be used: text, list, calendar, URL, media, editor and fields from other extensions.
Joomla's Fields component (com_fields) must be enabled. It is enabled on a normal Joomla install.
Add fields to a type
- Go to Components > JoomMap > Location Types.
- Under the type, click Manage Fields. Joomla's field manager opens, limited to this type.
- Click New, choose the Type of field, enter a Title and save.
- To group fields on their own tab, click Manage Fields Groups under the type, create a group, and choose it as Field Group in each field.
When you edit a location type, the same two buttons are in the toolbar.
Fill in the fields
Open a location whose Primary Location Type has fields. The fields appear as extra tabs in the form, one tab per field group, with ungrouped fields on a Fields tab. Members see the same tabs in the site form.
When you change the Primary Location Type, the form reloads to show the fields of the new type. In 6.0.1 the page can stay greyed out after the change on an existing location. Reload the page with F5, then save.
On the site
The location page shows the fields in a table below the description: the field label on the left, the value on the right, under a heading for each field group. Fields without a value are left out.
Fields only show on the location page. Infoboxes and the List tab do not show them.
Good to know
- Fields belong to the primary type only. The additional types of a location do not add their fields.
- The fields are linked to the alias of the type. If you change a type's alias, its fields no longer show on its locations. Change it back to get them again.
- Each field has its own Access and Permissions in the field manager, for example to show a field only to registered users or to let only editors change it.
- Fields from older JoomMap versions (built-in fields stored with the location type) are not shown in 6.0.1. Recreate them as Joomla fields.