baumrock / RockMigrations

The Ultimate Automation and Deployment-Tool for ProcessWire
MIT License
33 stars 10 forks source link

support both syntaxes 'repeaterFields" and 'fieldContexts' #19

Closed gebeer closed 1 year ago

gebeer commented 1 year ago

Hi, please check. Now we can define repeater fields either way:

  1. assoc array with fieldname => [fielddata]
    'repeaterFields' => [
    'foo' => ['columnWidth' => 50],
    ]
  2. plain 'repeaterFields' array with fieldnames only + 'fieldContexts' assoc array with fieldname => [fielddata] to support copy/paste from RM Code in field edit screen
'repeaterFields' => [
  'foo',
],
'fieldContexts' => [
  'foo' => [...],
],