1-n Content Type to Field relationship (variable number / list of fields)

Topics: Customizing Orchard, Writing modules
Feb 14, 2014 at 2:24 AM
Edited Feb 14, 2014 at 2:25 AM
crosspost: http://stackoverflow.com/questions/21769697/1-n-content-type-to-field-relationship-variable-number-list-of-fields-orch

What would be the best way to implement a field that varies in number?

Perfect example would be a Content Type called Event which has the date time fields Start Date and End Date. Normally you would just attach those 2 fields onto the "hidden" part. Now, supposed that it were possible to have multiple event dates (2 each month from March to May), which means we would need 6 pairs of Start and End dates (kinda like a 1-n relationship). Is there any straightforward way to implement this in Orchard?