Skip to content

Commit 1b115e6

Browse files
zeezo887ifox
authored andcommitted
update json repeater docs
1 parent 99e6373 commit 1b115e6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/content/1_docs/4_form-fields/11_repeater.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,32 @@ class ProjectController extends BaseModuleController
161161
]);
162162
}
163163
}
164+
```
165+
### Medias
166+
167+
If your json repeater contains media formField, you need to define the
168+
`mediasParams` at `config/twill.php` under `repeaters.crops` or `block_editor.crops`.
169+
170+
```
171+
'repeaters' => [
172+
'crops' => [
173+
‘your-media-field-name’ => [
174+
175+
]
176+
],
177+
]
178+
```
179+
180+
OR
181+
```
182+
'block_editor' => [
183+
'crops' => [
184+
‘your-media-field-name’ => [
185+
186+
]
187+
],
188+
]
189+
164190
```
165191

166192
| Option | Description | Type | Default value |

0 commit comments

Comments
 (0)