Location Field in Discussion Form
Hi @LeonidS
I need to configure a "location" field in the discussion form that works exactly like the field in the profile forms for people and organizations. That is, I need to be able to type in the field and have the list from Google Maps displayed.
I added a location field to the "new discussion" form using Studio-Developer-Forms, but it's not working. Only a toggle switch appears.
Is there anything else I need to configure?
Thanks



-
-
·
LeonidS
- ·
Hello @Claudio Acosta !
It seems the only things which was left is to add the following code to the modules/boonex/forums/classes/BxForumConfig.php file:
'FIELD_LOCATION' => 'location', 'FIELD_LOCATION_PREFIX' => 'location',before this line:
'FIELD_LABELS' => 'labels', -
·
LeonidS
-
Hi @LeonidS
Could doing that affect the functionality of the "location" fields in the profile creation forms for people and organizations?
Thanks.
-
No, it couldn't. If you've created the Location field in the Discussions form then all actions will be produced only there.
-
Hi @LeonidS
Ok, I'll do what you suggested and let you know.
Would the file I'm modifying be affected later when I perform a UNA version update?
Thanks.
-
Yes, it is possible if this file will be changed during the development of the future 15 beta subversions. You need to download the copy now or remember the link to this topic :-)
-
Thanks @LeonidS