Skip to content

Commit a2bb983

Browse files
authored
Merge pull request #750 from jalendport/patch-1
Update matrix field code example from blocks → entries
2 parents c8049c8 + a9ed800 commit a2bb983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/5.x/reference/field-types/matrix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ Then define the form inputs for any additional entries that should be appended t
460460
```twig
461461
{{ hiddenInput('fields[myFieldHandle][sortOrder][]', 'new:1') }}
462462
463-
{# Prefix the entry’s input names with `fields[myFieldHandle][blocks][new:1]` #}
464-
{% namespace "fields[myFieldHandle][blocks][new:1]" %}
463+
{# Prefix the entry’s input names with `fields[myFieldHandle][entries][new:1]` #}
464+
{% namespace "fields[myFieldHandle][entries][new:1]" %}
465465
{# This hidden `type` input will be expanded like the example above: #}
466466
{{ hiddenInput('type', 'text') }}
467467

0 commit comments

Comments
 (0)