You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/docs/3_reference/3_panel/3_fields/0_files/reference-article.txt
+9-9
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Title: Files
4
4
5
5
Intro:
6
6
7
-
A 'files' 'select' field that allows selecting one or multiple related files
7
+
A filesselect field that allows selecting one or multiple related files
8
8
9
9
----
10
10
@@ -14,7 +14,7 @@ Guide: content/files
14
14
15
15
Text:
16
16
17
-
The 'files' field allows you to select one or more files.
17
+
The files field allows you to select one or more files.
18
18
19
19
(image: files.png)
20
20
@@ -59,7 +59,7 @@ fields:
59
59
60
60
## Layout
61
61
62
-
You can switch between the `list` and `cards` layouts. The default is a `list` layout.
62
+
You can switch between `list` and `cards` layouts. Default is `list` layout.
63
63
64
64
```yaml
65
65
fields:
@@ -85,7 +85,7 @@ You can use all file types available in Kirby here (`images`, `documents`, `vide
85
85
86
86
### Querying files from other pages
87
87
88
-
You can get as complex as you like, e.g. 'get all images from all children of the `photography` page that use the `cover` template:
88
+
You can get as complex as you like, e.g. get all images from all children of the `photography` page that use the `cover` template:
89
89
90
90
```yaml
91
91
gallery:
@@ -122,7 +122,7 @@ image:
122
122
123
123
### `back`
124
124
125
-
Set an image background behind the image, which will show if 'cover' is not set to true as explained above.
125
+
Set an image background behind the image, which will show if cover is not set to true as explained above.
126
126
Options: `pattern (default)`, `black`, `white`
127
127
```yaml
128
128
@@ -134,15 +134,15 @@ image:
134
134
135
135
### No image
136
136
137
-
Don't want to see an image preview? Set the image options to 'false' if you don't want to show an image, which will show an icon instead:
137
+
Don't want to see an image preview? Set the image options to `false` if you don't want to show an image, which reveals an icon instead:
138
138
139
139
```yml
140
140
image: false
141
141
```
142
142
143
143
## Upload options
144
144
145
-
By default, the files field allows you to upload files. You can define the `Add` button behavior with the `uploads` option: When clicking on the `Add` button, you can either 'select a file' and/or 'upload a file' (which is then automatically selected).
145
+
By default, the files field allows you to upload files. You can define the `Add` button behavior with the `uploads` option: When clicking on the `Add` button, you can either select a file and/or upload a file (which is then automatically selected).
146
146
147
147
### Prevent uploading
148
148
@@ -156,7 +156,7 @@ gallery:
156
156
157
157
### Destination and template
158
158
159
-
By default, all files will be uploaded to the current page without any predefined template. But with the additional options, you can 'fetch files from anywhere', 'upload them to a specific page', or even control which file template should be assigned by default:
159
+
By default, all files will be uploaded to the current page without any predefined template. But with the additional options, you can fetch files from anywhere, upload them to a specific page, or even control which file template should be assigned by default:
160
160
161
161
```yaml
162
162
gallery:
@@ -176,7 +176,7 @@ gallery:
176
176
177
177
### Restricting uploads to certain file types
178
178
179
-
To restrict what types of files can be uploaded to the given destination, assign a file 'template' using the `uploads` property, and in your file template, set the `accept` option. For more information see the docs about (link: docs/reference/panel/blueprints/file#accept text: file blueprints).
179
+
To restrict what types of files can be uploaded to the given destination, assign a file template using the `uploads` property, and in your file template, set the `accept` option. For more information see the docs about (link: docs/reference/panel/blueprints/file#accept text: file blueprints).
0 commit comments