Hi there,
We need to create a custom field where users can enter their town for their user profile. What we then need is a map displaying a pin for every user, so there is an overview where every user is on the site.
Is this possible please?
Hello,
Yes, it possible within Toolset, it needs three plugins: Types + Views + Maps, you can download them here:
https://toolset.com/account/downloads/
Here are detail steps:
1) Create a custom user address field
https://toolset.com/documentation/user-guides/user-fields/
2) Edit each user's profile, setup the value of above address field
3) Create a user view, list users, and display the address field as map markers:
https://toolset.com/documentation/user-guides/display-on-google-maps/
Hi Luo,
Many thanks for your reply.
Would users be able to enter their location in that address field (by town only, people should not have to enter their specific address) from the front end? Or would we have to do that for them?
Many thanks,
Andrew.
Dear Andrew,
Yes, it is possible within Toolset,
It needs four plugins: Types, Views, Forms and Maps , you can download them here:
https://toolset.com/account/downloads/
Here are details steps:
1) Create a custom user address field, for example "my-address"
https://toolset.com/documentation/user-guides/user-fields/
2) Create a Toolset form for editing user with above address field
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/
put it into a page, for users to edit their profile, and input their address value
3) Create a user view, list users, and display a map, in view's loop, display the address value as map makers.
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#displaying-a-map-with-a-list-of-markers-coming-from-a-view
For your reference.
Thank you for your reply.
Can you confirm this please:
Will users be able to simply enter a town, rather than having to enter their exact address (which would not be suitable). We just need to display the town of every user on the map.
Very best wishes,
Andrew.
Yes, that is possible, the user can input town name instead of exact address.