Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom fields for persons and events #22

Closed
alberanid opened this issue Apr 12, 2015 · 1 comment
Closed

custom fields for persons and events #22

alberanid opened this issue Apr 12, 2015 · 1 comment

Comments

@alberanid
Copy link
Member

Introduce the possibility to add custom fields of various kind (text, date, time, boolean, email and so on) to persons and events.

@alberanid
Copy link
Member Author

We already supports custom fields for persons, even if right now there's no GUI to create/edit them

To introduce a new custom field, you need to add a document into the settings collection. Its fields are:

  • setting: must be person_custom_field
  • label: label that will be used as column name
  • key: the value of the field will be stored with this key
  • type: right now only boolean is supported; anything else will be handled as a text (input field)
  • in_event_details: boolean; if true, a column is shown in the Event detail page (the value is set to a key in the person_data dictionary of the given event)
  • in_persons_list: boolean; if true, the custom fields is shown in the Persons list and in the edit page of every person.

Examples:

  • {setting: 'person_custom_field', label: 'Newsletter', key: 'newsletter', type: 'boolean', in_event_details: false, in_persons_list: true}
  • {setting: 'person_custom_field', label: 'Attestation', key: 'attestation', type: 'boolean', in_event_details: true, in_persons_list: false}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant