Jump to content

New syntax for repeater fields in v2.9.0


bernhard
 Share

Recommended Posts

Version 2.9.0 changes the syntax for repeater fields from this:

$rm->createField("my_repeater", "repeater", [
  'label' => 'Test',
  'repeaterFields' => [
    'title',
  ],
  'fieldContexts' => [
    'title' => ['label' => 'foo'],
  ],
]);

to that:

$rm->createField("my_repeater", "repeater", [
  'label' => 'Test',
  'fields' => [
    'title' => ['label' => 'foo'],
  ],
]);

This might be a breaking change in your system so check before updating ? 

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...