Skip to content

Feature request: add location field #64

@emibcn

Description

@emibcn

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
   }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions