Skip to content

Commit 89bee3c

Browse files
authored
Asset Tag: Correct parameter name
Doc says to use parameter `max_items` which does not seem to work. Corrected to `max_files` - which works as expected - as documented here: https://docs.statamic.com/fieldtypes/assets
1 parent 623aaf9 commit 89bee3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/collections/tags/assets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ bacon_images:
154154

155155
### Single Assets {#single-assets}
156156

157-
If you have an asset field with `max_items: 1` the data will be saved as a `string`. As one cannot iterate over a string, the tag will adjust accordingly without complaining.
157+
If you have an asset field with `max_files: 1` the data will be saved as a `string`. As one cannot iterate over a string, the tag will adjust accordingly without complaining.
158158

159159
``` .language-yaml
160160
hero_image: /img/negasonic-teenage-warhead.jpg

0 commit comments

Comments
 (0)