zikula-modules / Formicula

A template-driven form mailer for Zikula
https://ziku.la
19 stars 7 forks source link

Feature: Specify contacts per form #40

Closed hvorragend closed 11 years ago

hvorragend commented 12 years ago

@damon

Related to feature request #39 it would be very useful if each form could have it's own list of contacts, rather than just one master list used for all forms.

espaan commented 12 years ago

True. How would you see this? if it needs to be in the form then some definition should be made of how the contact list should look. Some array of name / email.

hvorragend commented 12 years ago

@damon18

damon18 commented 12 years ago

@espaan Well the problem is that right now the Formicula administration doesn't know anything about individual forms, just contacts. If the create contacts had a field for form number then a separate list of contacts (and contact list order) could be maintained for each form.

Or to avoid having to create the same contact for multiple forms, maybe the contact information could have an input for a piped list of form numbers where that contact should be active. There could also be a "weight" field for the relative order of the contacts.

The weighting as above wouldn't address the problem where different forms might have the same contacts but a different display order is desired.

espaan commented 12 years ago

Hi, thanks for the reply. Indeed a list of forms (with a empty default representing all forms) might do the trick for this. A comma separated list is used in various places within Zikula for these kind of things. Also being used for instance with the anti-spam image etc.

So that might be the way to go, just one field extra per contact if that one is applicable for a certain form.

espaan commented 11 years ago

Done in https://github.com/zikula-ev/Formicula/commit/5d7b8095a8fcd0a94255d955eeca27b392c3fcc3