twill: Is it possible to use repeaters outside Block Editor?

I’m a little confused about the usage of repeaters. In the docs under the form fields section I see the following example:

<a17-fieldset title="Videos" id="videos" :open="true">
    @formField('repeater', ['type' => 'video'])
</a17-fieldset>

This seems to use the repeaters without the Block Editor, but I can’t figure out how to make it work, where should video template stuff go? And would the content be saved on a specific column on the model’s table?

Any help appreciated, Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@yanhao-li I was just a bit confused about settings for this repeater being under “block editor” as the field itself is used outside of it. Maybe it would make sense to move config for all repeaters outside of “block_editor” (this are already semantics)?

Hey @yanhao-li, thanks for the instructions.

I was going to try digging into the source code since the docs seem to be missing some details but I wanted to make sure it was possible to achieve what I’m asking for first.

I will try to get this working now and see what I get, thanks again.