custom link to map element

Status
Not open for further replies.

griffin

Member
Hi - I'd really appreciate some help ...

I have list "courses" with database join element "location" (courses_location) from list "location" element "address3" (location_address3) which shows the City where the course is to be held, and I want to have custom link to show the map of that location - from the element "location_map" - for attendees to be able to get the map.

I have tried "index.php?option=com_fabrik&view=form&formid=4&rowid={rowid}" but this takes to the form of the record in location with the matching rowid which isn't necessarily the correct row.

Ideally I would like the custom link to display the correct record in a new window and only display the map element.

Thanks in advance for any help here.
 
Your database join element contains the rowid of the location (if you have value=id[recommended]), so use
index.php?option=com_fabrik&view=form&formid=4&rowid={your-dbjoin-element_raw}

To get a form with only the map element:
copy the location list to e.g. location-map-only, this will create new list/group/form/elements linked to the same DB table.
Go to elements, disable all but id and location_map of location-map-only
Call the new form in your custom link
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top