-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Hello,
I use this module in some projects and, in one of them, I need to collect user's location. I use (django-map-widgets)[https://github.com/erdem/django-map-widgets] and would like to use it here, but looks a little difficukt to add plugins/widgets to cmsplugin-contact-plus. Being able to use extra Django fields would be very nice.
A possible solution would be to add it to settings.py something like:
def getFormMap(extraField):
return gismodels.PointField(
label=extraField.label,
initial=extraField.initial,
help_text=extraField.placeholder,
required=extraField.required)
CMS_PLUGIN_CONTACT_PLUS_WIDGETS = [
{
'fieldType': 'LocationMapField',
'getter': getFormMap
}
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels